Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915/dpll: Rename macro for_each_shared_dpll

Rename the macro for_each_shared_dpll to for_each_dpll since
this loop will not necessarily be used for only shared
dpll in future.

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://lore.kernel.org/r/20250515071801.2221120-5-suraj.kandpal@intel.com

+11 -11
+1 -1
drivers/gpu/drm/i915/display/intel_display_debugfs.c
··· 627 627 display->dpll.ref_clks.nssc, 628 628 display->dpll.ref_clks.ssc); 629 629 630 - for_each_shared_dpll(display, pll, i) { 630 + for_each_dpll(display, pll, i) { 631 631 drm_printf(&p, "DPLL%i: %s, id: %i\n", pll->index, 632 632 pll->info->name, pll->info->id); 633 633 drm_printf(&p, " pipe_mask: 0x%x, active: 0x%x, on: %s\n",
+8 -8
drivers/gpu/drm/i915/display/intel_dpll_mgr.c
··· 127 127 struct intel_shared_dpll *pll; 128 128 int i; 129 129 130 - /* Copy shared dpll state */ 131 - for_each_shared_dpll(display, pll, i) 130 + /* Copy dpll state */ 131 + for_each_dpll(display, pll, i) 132 132 dpll_state[pll->index] = pll->state; 133 133 } 134 134 ··· 165 165 struct intel_shared_dpll *pll; 166 166 int i; 167 167 168 - for_each_shared_dpll(display, pll, i) { 168 + for_each_dpll(display, pll, i) { 169 169 if (pll->info->id == id) 170 170 return pll; 171 171 } ··· 348 348 unsigned long dpll_mask = 0; 349 349 int i; 350 350 351 - for_each_shared_dpll(display, pll, i) { 351 + for_each_dpll(display, pll, i) { 352 352 drm_WARN_ON(display->drm, dpll_mask & BIT(pll->info->id)); 353 353 354 354 dpll_mask |= BIT(pll->info->id); ··· 521 521 if (!state->dpll_set) 522 522 return; 523 523 524 - for_each_shared_dpll(display, pll, i) 524 + for_each_dpll(display, pll, i) 525 525 swap(pll->state, dpll_state[pll->index]); 526 526 } 527 527 ··· 4542 4542 struct intel_shared_dpll *pll; 4543 4543 int i; 4544 4544 4545 - for_each_shared_dpll(display, pll, i) 4545 + for_each_dpll(display, pll, i) 4546 4546 readout_dpll_hw_state(display, pll); 4547 4547 } 4548 4548 ··· 4571 4571 4572 4572 intel_cx0_pll_power_save_wa(display); 4573 4573 4574 - for_each_shared_dpll(display, pll, i) 4574 + for_each_dpll(display, pll, i) 4575 4575 sanitize_dpll_state(display, pll); 4576 4576 } 4577 4577 ··· 4720 4720 struct intel_shared_dpll *pll; 4721 4721 int i; 4722 4722 4723 - for_each_shared_dpll(display, pll, i) 4723 + for_each_dpll(display, pll, i) 4724 4724 verify_single_dpll_state(display, pll, NULL, NULL); 4725 4725 }
+1 -1
drivers/gpu/drm/i915/display/intel_dpll_mgr.h
··· 30 30 #include "intel_display_power.h" 31 31 #include "intel_wakeref.h" 32 32 33 - #define for_each_shared_dpll(__display, __pll, __i) \ 33 + #define for_each_dpll(__display, __pll, __i) \ 34 34 for ((__i) = 0; (__i) < (__display)->dpll.num_shared_dpll && \ 35 35 ((__pll) = &(__display)->dpll.shared_dplls[(__i)]) ; (__i)++) 36 36
+1 -1
drivers/gpu/drm/i915/display/intel_pch_refclk.c
··· 535 535 } 536 536 537 537 /* Check if any DPLLs are using the SSC source */ 538 - for_each_shared_dpll(display, pll, i) { 538 + for_each_dpll(display, pll, i) { 539 539 u32 temp; 540 540 541 541 temp = intel_de_read(display, PCH_DPLL(pll->info->id));