aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_crtc.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2012-05-24 13:54:00 -0400
committerDave Airlie <airlied@redhat.com>2012-05-29 06:06:58 -0400
commitcff91b625f2cd607ddb7a82b453f7c67906b70db (patch)
treebc0223708b9f6f3ff24ee1e8f4ba299be5980407 /drivers/gpu/drm/drm_crtc.c
parent1f73cca799d29df80de3e8f1f1c488485467577a (diff)
drm: Constify params to format_check() and framebuffer_checks()
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
-rw-r--r--drivers/gpu/drm/drm_crtc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index 92cea9d77ec9..5c3f30cbe535 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -2116,7 +2116,7 @@ out:
2116 return ret; 2116 return ret;
2117} 2117}
2118 2118
2119static int format_check(struct drm_mode_fb_cmd2 *r) 2119static int format_check(const struct drm_mode_fb_cmd2 *r)
2120{ 2120{
2121 uint32_t format = r->pixel_format & ~DRM_FORMAT_BIG_ENDIAN; 2121 uint32_t format = r->pixel_format & ~DRM_FORMAT_BIG_ENDIAN;
2122 2122
@@ -2185,7 +2185,7 @@ static int format_check(struct drm_mode_fb_cmd2 *r)
2185 } 2185 }
2186} 2186}
2187 2187
2188static int framebuffer_check(struct drm_mode_fb_cmd2 *r) 2188static int framebuffer_check(const struct drm_mode_fb_cmd2 *r)
2189{ 2189{
2190 int ret, hsub, vsub, num_planes, i; 2190 int ret, hsub, vsub, num_planes, i;
2191 2191