From: Thierry Reding <treding@xxxxxxxxxx> Use unsigned int pipe consistently to denote the CRTC index. Cc: Rob Clark <robdclark@xxxxxxxxx> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> --- drivers/gpu/drm/msm/msm_drv.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 7e44511d0951..6efce13acefd 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -118,7 +118,7 @@ u32 msm_readl(const void __iomem *addr) struct vblank_event { struct list_head node; - int crtc_id; + unsigned int pipe; bool enable; }; @@ -139,10 +139,10 @@ static void vblank_ctrl_worker(struct work_struct *work) if (vbl_ev->enable) kms->funcs->enable_vblank(kms, - priv->crtcs[vbl_ev->crtc_id]); + priv->crtcs[vbl_ev->pipe]); else kms->funcs->disable_vblank(kms, - priv->crtcs[vbl_ev->crtc_id]); + priv->crtcs[vbl_ev->pipe]); kfree(vbl_ev); @@ -153,7 +153,7 @@ static void vblank_ctrl_worker(struct work_struct *work) } static int vblank_ctrl_queue_work(struct msm_drm_private *priv, - int crtc_id, bool enable) + unsigned int pipe, bool enable) { struct msm_vblank_ctrl *vbl_ctrl = &priv->vblank_ctrl; struct vblank_event *vbl_ev; @@ -163,7 +163,7 @@ static int vblank_ctrl_queue_work(struct msm_drm_private *priv, if (!vbl_ev) return -ENOMEM; - vbl_ev->crtc_id = crtc_id; + vbl_ev->pipe = pipe; vbl_ev->enable = enable; spin_lock_irqsave(&vbl_ctrl->lock, flags); -- 2.5.0 _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel