Commit a3e77e16 authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Heiko Stuebner

drm/rockchip: Use drm_crtc_mask()

Use drm_crtc_mask() where appropriate.

Cc: Sandy Huang <hjc@rock-chips.com>
Cc: "Heiko Stübner" <heiko@sntech.de>
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20180626194716.12522-7-ville.syrjala@linux.intel.com
parent 5ae79cf1
...@@ -1308,7 +1308,7 @@ static int vop_create_crtc(struct vop *vop) ...@@ -1308,7 +1308,7 @@ static int vop_create_crtc(struct vop *vop)
for (i = 0; i < vop_data->win_size; i++) { for (i = 0; i < vop_data->win_size; i++) {
struct vop_win *vop_win = &vop->win[i]; struct vop_win *vop_win = &vop->win[i];
const struct vop_win_data *win_data = vop_win->data; const struct vop_win_data *win_data = vop_win->data;
unsigned long possible_crtcs = 1 << drm_crtc_index(crtc); unsigned long possible_crtcs = drm_crtc_mask(crtc);
if (win_data->type != DRM_PLANE_TYPE_OVERLAY) if (win_data->type != DRM_PLANE_TYPE_OVERLAY)
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment