diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-07-17 15:56:50 (GMT) |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-07-20 01:52:38 (GMT) |
commit | e811f5ae19043b2ac2c28e147a4274038e655598 (patch) | |
tree | ca2e6a30df60d0f53042df78934f406383e839bc /drivers/staging/omapdrm | |
parent | 59fd415ded4aa9ac2f80ca3ac36e3a014c7e552e (diff) | |
download | linux-fsl-qoriq-e811f5ae19043b2ac2c28e147a4274038e655598.tar.xz |
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/staging/omapdrm')
-rw-r--r-- | drivers/staging/omapdrm/omap_crtc.c | 2 | ||||
-rw-r--r-- | drivers/staging/omapdrm/omap_encoder.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/omapdrm/omap_crtc.c b/drivers/staging/omapdrm/omap_crtc.c index 8b864af..62e0022 100644 --- a/drivers/staging/omapdrm/omap_crtc.c +++ b/drivers/staging/omapdrm/omap_crtc.c @@ -60,7 +60,7 @@ static void omap_crtc_dpms(struct drm_crtc *crtc, int mode) } static bool omap_crtc_mode_fixup(struct drm_crtc *crtc, - struct drm_display_mode *mode, + const struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode) { return true; diff --git a/drivers/staging/omapdrm/omap_encoder.c b/drivers/staging/omapdrm/omap_encoder.c index 06c52cb..31c735d 100644 --- a/drivers/staging/omapdrm/omap_encoder.c +++ b/drivers/staging/omapdrm/omap_encoder.c @@ -48,7 +48,7 @@ static void omap_encoder_dpms(struct drm_encoder *encoder, int mode) } static bool omap_encoder_mode_fixup(struct drm_encoder *encoder, - struct drm_display_mode *mode, + const struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode) { struct omap_encoder *omap_encoder = to_omap_encoder(encoder); |