diff options
author | Thierry Reding <treding@nvidia.com> | 2015-12-15 06:20:51 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-12-15 07:36:18 -0500 |
commit | d2ab8ad9713de1bd5e0da187263e35b2eea57e1c (patch) | |
tree | 11ce544a002984c177064e63094af4825d3ce94a /drivers/gpu/drm/imx/imx-drm-core.c | |
parent | 20143598f731b71e35cba82ad29dc9d2e3788323 (diff) |
drm/imx: Make pipe number unsigned
There's no reason whatsoever why this should ever be negative. The same
goes for the number of pipes added to the DRM device.
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1450178476-26284-4-git-send-email-boris.brezillon@free-electrons.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/imx/imx-drm-core.c')
-rw-r--r-- | drivers/gpu/drm/imx/imx-drm-core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c index 09e20ea69419..9211473f62a1 100644 --- a/drivers/gpu/drm/imx/imx-drm-core.c +++ b/drivers/gpu/drm/imx/imx-drm-core.c | |||
@@ -39,13 +39,13 @@ struct imx_drm_component { | |||
39 | struct imx_drm_device { | 39 | struct imx_drm_device { |
40 | struct drm_device *drm; | 40 | struct drm_device *drm; |
41 | struct imx_drm_crtc *crtc[MAX_CRTC]; | 41 | struct imx_drm_crtc *crtc[MAX_CRTC]; |
42 | int pipes; | 42 | unsigned int pipes; |
43 | struct drm_fbdev_cma *fbhelper; | 43 | struct drm_fbdev_cma *fbhelper; |
44 | }; | 44 | }; |
45 | 45 | ||
46 | struct imx_drm_crtc { | 46 | struct imx_drm_crtc { |
47 | struct drm_crtc *crtc; | 47 | struct drm_crtc *crtc; |
48 | int pipe; | 48 | unsigned int pipe; |
49 | struct imx_drm_crtc_helper_funcs imx_drm_helper_funcs; | 49 | struct imx_drm_crtc_helper_funcs imx_drm_helper_funcs; |
50 | }; | 50 | }; |
51 | 51 | ||
@@ -54,7 +54,7 @@ static int legacyfb_depth = 16; | |||
54 | module_param(legacyfb_depth, int, 0444); | 54 | module_param(legacyfb_depth, int, 0444); |
55 | #endif | 55 | #endif |
56 | 56 | ||
57 | int imx_drm_crtc_id(struct imx_drm_crtc *crtc) | 57 | unsigned int imx_drm_crtc_id(struct imx_drm_crtc *crtc) |
58 | { | 58 | { |
59 | return crtc->pipe; | 59 | return crtc->pipe; |
60 | } | 60 | } |