drm/i915: Extract hsw_chicken_trans_reg()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 1 Nov 2023 11:42:08 +0000 (13:42 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 6 Nov 2023 07:52:56 +0000 (09:52 +0200)
commita379bf3d14602067812f219bd852ff89dff31133
treefe3c288dd35a0f6abac6efc909939dc010cb9051
parenta12480855ecbba6c7473c170d91c7bf41701a38c
drm/i915: Extract hsw_chicken_trans_reg()

We have the same code to determine the CHICKEN_TRANS register
offset sprinkled in a dozen places. Hoover it up into a small
helper.

TODO: find a better home for this

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231101114212.9345-2-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_ddi.h
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_dp_mst.c
drivers/gpu/drm/i915/display/intel_psr.c