drm: Pass the user drm_mode_fb_cmd2 as const to .fb_create()
[deliverable/linux.git] / drivers / gpu / drm / ast / ast_main.c
index 541a610667add983ed234bb9e7807ed90ffb75ce..9759009d1da367cd8b3f264671ea7942aa3ab79a 100644 (file)
@@ -309,7 +309,7 @@ static const struct drm_framebuffer_funcs ast_fb_funcs = {
 
 int ast_framebuffer_init(struct drm_device *dev,
                         struct ast_framebuffer *ast_fb,
-                        struct drm_mode_fb_cmd2 *mode_cmd,
+                        const struct drm_mode_fb_cmd2 *mode_cmd,
                         struct drm_gem_object *obj)
 {
        int ret;
@@ -327,7 +327,7 @@ int ast_framebuffer_init(struct drm_device *dev,
 static struct drm_framebuffer *
 ast_user_framebuffer_create(struct drm_device *dev,
               struct drm_file *filp,
-              struct drm_mode_fb_cmd2 *mode_cmd)
+              const struct drm_mode_fb_cmd2 *mode_cmd)
 {
        struct drm_gem_object *obj;
        struct ast_framebuffer *ast_fb;
This page took 0.024309 seconds and 5 git commands to generate.