]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm: Add local 'plane' variable for primary/cursor planes
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 22 Mar 2018 15:22:55 +0000 (17:22 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 29 Mar 2018 16:14:21 +0000 (19:14 +0300)
commit64c32b490333c9ccb05b172997c4f2f940c5d4d1
tree2c2b36210dbf3c0f7ce10dde6175fcc7a2818734
parent5e78d01fa1a7f1794dfc44a6eb77bfec7a8d590d
drm: Add local 'plane' variable for primary/cursor planes

Make the code a bit more readable by storing the plane pointer in a
local variable rather than having to do crtc->{primary,cursor} all the
time.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180322152313.6561-6-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_plane.c