]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915: Clean up skl_plane_has_planar()
authorDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Mon, 27 Aug 2018 22:56:24 +0000 (15:56 -0700)
committerDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Tue, 28 Aug 2018 19:23:55 +0000 (12:23 -0700)
commit18563409b13274e9d199276ba82910f72b69c308
tree46d8a992e9ecdf1c0ff5b1dba37907f75d9880a0
parent0d45db9c7a02a4736b78bb8e4ee7d96a29f554b5
drm/i915: Clean up skl_plane_has_planar()

skl_plane_has_planar is hard to read, simplify the logic by checking for
support in the order of platform, pipe and plane.

No change in functionality intended.
v2: Fix logic for primary plane (Ville)

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180827225624.4912-1-dhinakaran.pandiyan@intel.com
drivers/gpu/drm/i915/intel_display.c