]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Add drm_plane_mask()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 26 Jun 2018 19:47:07 +0000 (22:47 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 2 Jul 2018 15:45:55 +0000 (18:45 +0300)
commit6709288e4495c94db9039ec79157877007a542ce
treef3a9bbf33b04bdc5a3e22be1ba4eb8ea204d0ae1
parent8bedcc71337a3c8af7e6e023cc011c24676cb44d
drm: Add drm_plane_mask()

Add drm_plane_mask() which returns the 1<<index for the plane.
We already have an identical drm_crtc_mask() for crtcs.

Mostly performed with coccinelle:
@@
@@
- (1<<drm_plane_index(
+ drm_plane_mask(
  ...)
-  )

@@
@@
- 1<<drm_plane_index(
+ drm_plane_mask(
  ...)

@@
@@
- BIT(drm_plane_index(
+ drm_plane_mask(
  ...)
- )

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180626194716.12522-1-ville.syrjala@linux.intel.com
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/drm_framebuffer.c
drivers/gpu/drm/drm_simple_kms_helper.c
include/drm/drm_plane.h