drm/i915/power: relocate {SKL,ICL}_PW_CTL_IDX_TO_PG()
authorJani Nikula <jani.nikula@intel.com>
Wed, 25 Jun 2025 12:39:37 +0000 (15:39 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 26 Jun 2025 18:50:23 +0000 (21:50 +0300)
commitca09800fbbad463c1ff908928367a40e17e65eab
treee373def9f240cd5f8c70b456bacc837bce949ddf
parentc7cefe479af5d4dcba68ea8f7e25c5a06ebd85b8
drm/i915/power: relocate {SKL,ICL}_PW_CTL_IDX_TO_PG()

Move the {SKL,ICL}_PW_CTL_IDX_TO_PG() macros from intel_display_regs.h
to intel_display_power_well.c. The mapping from index to PG can be
hidden there.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://lore.kernel.org/r/18e40b77eeb3517a056f1e567672163ec568ec55.1750855148.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_display_power_well.c
drivers/gpu/drm/i915/display/intel_display_regs.h