drm/i915: Move drrs hardware bit frobbing to small helpers
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 27 Jan 2022 09:32:53 +0000 (11:32 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 28 Jan 2022 06:48:49 +0000 (08:48 +0200)
commit14683babf8ee356a232ee76b0acd332aef51fdc4
tree398aad121d26cf2b56da71da14af9365b960b984
parent5f721a5d1bb2e3ada83f04a119908b66d909300a
drm/i915: Move drrs hardware bit frobbing to small helpers

Split the drrs code that actually changes the refresh rate
(via PIPECONF or M/N values) to small helper functions that
only deal with the hardware details an nothing else. We'll
soon have a third way of doing this, and it's less confusing
when each difference method lives in its own funciton.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220127093303.17309-5-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_drrs.c