OSDN Git Service

drm/i915: Prefer to use the pipe to index the ddb entries
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 15 Jan 2020 19:08:11 +0000 (21:08 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 20 Jan 2020 14:54:25 +0000 (16:54 +0200)
commitee34801cc0e8f07ad210c220986e77dd46dd0b3e
tree50359b240f7e9213d8b7ba7d5ec0c1c685f5094e
parentfff13e63a14185f788ecbad5ed0a24609074f6c7
drm/i915: Prefer to use the pipe to index the ddb entries

Let's use the pipe rather than the silly 'i' iterator from
for_each_oldnew_intel_crtc_in_state() for indexing the ddb
entries array. Maybe one day we can assume c99 and hide the
'i' entirely from sight.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200115190813.17971-3-ville.syrjala@linux.intel.com
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
drivers/gpu/drm/i915/display/intel_display.c