drm: Add local 'plane' variable for tmp->primary
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 5 Apr 2018 15:14:00 +0000 (18:14 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 25 May 2018 18:21:39 +0000 (21:21 +0300)
commit3ed70ecd865943a2cbe9b1631f33c9370bc03578
tree4d50ea677ca175455e0f742829d1741cbbfc151a
parent0010ac3ffc0e2638b08869bef2588673e04b257d
drm: Add local 'plane' variable for tmp->primary

Clean up the ugly tmp->primary-> stuff in
__drm_mode_set_config_internal() with a local plane variable.

Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180405151400.11326-13-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c