summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv50_crtc.c
diff options
context:
space:
mode:
authorLaurent Pinchart2012-07-17 17:56:50 +0200
committerDave Airlie2012-07-20 03:52:38 +0200
commite811f5ae19043b2ac2c28e147a4274038e655598 (patch)
treeca2e6a30df60d0f53042df78934f406383e839bc /drivers/gpu/drm/nouveau/nv50_crtc.c
parentdrm: remove the list_head from drm_mode_set (diff)
downloadkernel-qcow2-linux-e811f5ae19043b2ac2c28e147a4274038e655598.tar.gz
kernel-qcow2-linux-e811f5ae19043b2ac2c28e147a4274038e655598.tar.xz
kernel-qcow2-linux-e811f5ae19043b2ac2c28e147a4274038e655598.zip
drm: Make the .mode_fixup() operations mode argument a const pointer
The passed mode must not be modified by the operation, make it const. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv50_crtc.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv50_crtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_crtc.c b/drivers/gpu/drm/nouveau/nv50_crtc.c
index 97a477b3d52d..22cebd5dd694 100644
--- a/drivers/gpu/drm/nouveau/nv50_crtc.c
+++ b/drivers/gpu/drm/nouveau/nv50_crtc.c
@@ -527,7 +527,7 @@ nv50_crtc_commit(struct drm_crtc *crtc)
}
static bool
-nv50_crtc_mode_fixup(struct drm_crtc *crtc, struct drm_display_mode *mode,
+nv50_crtc_mode_fixup(struct drm_crtc *crtc, const struct drm_display_mode *mode,
struct drm_display_mode *adjusted_mode)
{
return true;