drm/i915: Introduce for_each_shared_dpll()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 3 Oct 2023 20:06:19 +0000 (23:06 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 4 Oct 2023 13:46:45 +0000 (16:46 +0300)
commit51d3e62927193c101e02ad3ef114dbcd8f49b34a
treeab2c6a519e0270815fe85627d0c47adc85abda04
parent99e5a010e8153bf2454ceefe725fea5de72e7d64
drm/i915: Introduce for_each_shared_dpll()

No one really cares how we store the shared_dplls. Currently
it happens to be an array, but we could change that to a more
flexible scheme at some point. Hide the implementation details
behind an iterator macro.

The slight downside is the pll variable moving out of the
loop scope, but maybe someday soon we'll start to convert
everything over to having declarations within for-statements...

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