]> Git Repo - linux.git/commitdiff
drm: Constify params to format_check() and framebuffer_checks()
authorVille Syrjälä <[email protected]>
Thu, 24 May 2012 17:54:00 +0000 (20:54 +0300)
committerDave Airlie <[email protected]>
Tue, 29 May 2012 10:06:58 +0000 (11:06 +0100)
Signed-off-by: Ville Syrjälä <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
drivers/gpu/drm/drm_crtc.c

index 92cea9d77ec913e8bc21417dd07ff97e8d27cb9c..5c3f30cbe535df8ec425eab329643f0167998757 100644 (file)
@@ -2116,7 +2116,7 @@ out:
        return ret;
 }
 
-static int format_check(struct drm_mode_fb_cmd2 *r)
+static int format_check(const struct drm_mode_fb_cmd2 *r)
 {
        uint32_t format = r->pixel_format & ~DRM_FORMAT_BIG_ENDIAN;
 
@@ -2185,7 +2185,7 @@ static int format_check(struct drm_mode_fb_cmd2 *r)
        }
 }
 
-static int framebuffer_check(struct drm_mode_fb_cmd2 *r)
+static int framebuffer_check(const struct drm_mode_fb_cmd2 *r)
 {
        int ret, hsub, vsub, num_planes, i;
 
This page took 0.062252 seconds and 4 git commands to generate.