drm: Pass the user drm_mode_fb_cmd2 as const to .fb_create()
[deliverable/linux.git] / drivers / gpu / drm / mgag200 / mgag200_main.c
index b1a0f565617510d5797349004f1ee3dd63063042..9147444d5bf222470e5df21ce1d9e2c5687323e1 100644 (file)
@@ -29,7 +29,7 @@ static const struct drm_framebuffer_funcs mga_fb_funcs = {
 
 int mgag200_framebuffer_init(struct drm_device *dev,
                             struct mga_framebuffer *gfb,
-                            struct drm_mode_fb_cmd2 *mode_cmd,
+                            const struct drm_mode_fb_cmd2 *mode_cmd,
                             struct drm_gem_object *obj)
 {
        int ret;
@@ -47,7 +47,7 @@ int mgag200_framebuffer_init(struct drm_device *dev,
 static struct drm_framebuffer *
 mgag200_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 mga_framebuffer *mga_fb;
This page took 0.024251 seconds and 5 git commands to generate.