mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
drm/i915/dmc: use display instead of dereferencing dmc in intel_dmc_update_dc6_allowed_count()
There is no need for dereferencing the dmc pointer if the display is already in the scope of intel_dmc_update_dc6_allowed_count function. No functional change. Signed-off-by: Desnes Nunes <desnesn@redhat.com> Link: https://patch.msgid.link/20260423201020.506908-1-desnesn@redhat.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
07095bb7ea
commit
e3507e5356
|
|
@ -1582,10 +1582,10 @@ void intel_dmc_update_dc6_allowed_count(struct intel_display *display,
|
|||
struct intel_dmc *dmc = display_to_dmc(display);
|
||||
u32 dc5_cur_count;
|
||||
|
||||
if (DISPLAY_VER(dmc->display) < 14)
|
||||
if (DISPLAY_VER(display) < 14)
|
||||
return;
|
||||
|
||||
dc5_cur_count = intel_de_read(dmc->display, DG1_DMC_DEBUG_DC5_COUNT);
|
||||
dc5_cur_count = intel_de_read(display, DG1_DMC_DEBUG_DC5_COUNT);
|
||||
|
||||
if (!start_tracking)
|
||||
dmc->dc6_allowed.count += dc5_cur_count - dmc->dc6_allowed.dc5_start;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user