diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-06-26 22:47:13 +0300 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2018-06-27 13:32:17 +0200 |
commit | a3e77e1655961f4ed7ad4eea8763aed418bd932e (patch) | |
tree | f57d914a363ad8998a4c24133844a6c445676109 | |
parent | 5ae79cf18dc1a97d8d0ab420fc4d3f8674bcf0e8 (diff) | |
download | linux-a3e77e1655961f4ed7ad4eea8763aed418bd932e.tar.bz2 |
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: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20180626194716.12522-7-ville.syrjala@linux.intel.com
-rw-r--r-- | drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index c9222119767d..effecbed2d11 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c @@ -1308,7 +1308,7 @@ static int vop_create_crtc(struct vop *vop) for (i = 0; i < vop_data->win_size; i++) { struct vop_win *vop_win = &vop->win[i]; 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) continue; |