]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/sun4i: Use drm_crtc_mask()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 26 Jun 2018 19:47:14 +0000 (22:47 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 2 Jul 2018 15:45:56 +0000 (18:45 +0300)
Use drm_crtc_mask() where appropriate.

Cc: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180626194716.12522-8-ville.syrjala@linux.intel.com
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
drivers/gpu/drm/sun4i/sun4i_crtc.c
drivers/gpu/drm/sun4i/sun4i_lvds.c
drivers/gpu/drm/sun4i/sun4i_rgb.c

index 2d7c57406715a7cd7ea2a8e8466f4dffb7ea0f39..3eedf335a935c72b385657691d6c4290b7b9a954 100644 (file)
@@ -242,7 +242,7 @@ struct sun4i_crtc *sun4i_crtc_init(struct drm_device *drm,
 
        /* Set possible_crtcs to this crtc for overlay planes */
        for (i = 0; planes[i]; i++) {
-               uint32_t possible_crtcs = BIT(drm_crtc_index(&scrtc->crtc));
+               uint32_t possible_crtcs = drm_crtc_mask(&scrtc->crtc);
                struct drm_plane *plane = planes[i];
 
                if (plane->type == DRM_PLANE_TYPE_OVERLAY)
index be3f14d7746deee1b0183c113dc653e4c7e3629d..a69fe2e1f9d1d8d1a8c1f6fc2c8f90198e731659 100644 (file)
@@ -136,7 +136,7 @@ int sun4i_lvds_init(struct drm_device *drm, struct sun4i_tcon *tcon)
        }
 
        /* The LVDS encoder can only work with the TCON channel 0 */
-       lvds->encoder.possible_crtcs = BIT(drm_crtc_index(&tcon->crtc->crtc));
+       lvds->encoder.possible_crtcs = drm_crtc_mask(&tcon->crtc->crtc);
 
        if (tcon->panel) {
                drm_connector_helper_add(&lvds->connector,
index f2fa1f210509e1d9baecaf8140ff98b97e6e4635..96d21b07f8fcac9d9d89c8f3580c8be62f800c62 100644 (file)
@@ -202,7 +202,7 @@ int sun4i_rgb_init(struct drm_device *drm, struct sun4i_tcon *tcon)
        }
 
        /* The RGB encoder can only work with the TCON channel 0 */
-       rgb->encoder.possible_crtcs = BIT(drm_crtc_index(&tcon->crtc->crtc));
+       rgb->encoder.possible_crtcs = drm_crtc_mask(&tcon->crtc->crtc);
 
        if (tcon->panel) {
                drm_connector_helper_add(&rgb->connector,