drm/i915/power: convert {SKL, ICL}_PW_CTL_IDX_TO_PG() macros to a function
authorJani Nikula <jani.nikula@intel.com>
Wed, 25 Jun 2025 12:39:38 +0000 (15:39 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 26 Jun 2025 18:50:23 +0000 (21:50 +0300)
commit80e49db50175b935da6026009d6e09e17af044df
treea7178c72a39336f3e885207679d7e03b836a1c85
parentca09800fbbad463c1ff908928367a40e17e65eab
drm/i915/power: convert {SKL, ICL}_PW_CTL_IDX_TO_PG() macros to a function

Add pw_ctl_idx_to_pg() helper function to deduplicate the open-coded
usage of the {SKL,ICL}_PW_CTL_IDX_TO_PG() macros.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://lore.kernel.org/r/3aa74825db0b900f93b94aa89d0242a354929b85.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