drm: Pass the user drm_mode_fb_cmd2 as const to .fb_create()
[deliverable/linux.git] / drivers / gpu / drm / rockchip / rockchip_drm_fb.c
index 002645bb5bbf9b83f30c0f383050c817d8e43dbc..b8ac5911c102626dce836729736417e9747ebbf9 100644 (file)
@@ -72,7 +72,7 @@ static struct drm_framebuffer_funcs rockchip_drm_fb_funcs = {
 };
 
 static struct rockchip_drm_fb *
-rockchip_fb_alloc(struct drm_device *dev, struct drm_mode_fb_cmd2 *mode_cmd,
+rockchip_fb_alloc(struct drm_device *dev, const struct drm_mode_fb_cmd2 *mode_cmd,
                  struct drm_gem_object **obj, unsigned int num_planes)
 {
        struct rockchip_drm_fb *rockchip_fb;
@@ -102,7 +102,7 @@ rockchip_fb_alloc(struct drm_device *dev, struct drm_mode_fb_cmd2 *mode_cmd,
 
 static struct drm_framebuffer *
 rockchip_user_fb_create(struct drm_device *dev, struct drm_file *file_priv,
-                       struct drm_mode_fb_cmd2 *mode_cmd)
+                       const struct drm_mode_fb_cmd2 *mode_cmd)
 {
        struct rockchip_drm_fb *rockchip_fb;
        struct drm_gem_object *objs[ROCKCHIP_MAX_FB_BUFFER];
@@ -173,7 +173,7 @@ static const struct drm_mode_config_funcs rockchip_drm_mode_config_funcs = {
 
 struct drm_framebuffer *
 rockchip_drm_framebuffer_init(struct drm_device *dev,
-                             struct drm_mode_fb_cmd2 *mode_cmd,
+                             const struct drm_mode_fb_cmd2 *mode_cmd,
                              struct drm_gem_object *obj)
 {
        struct rockchip_drm_fb *rockchip_fb;
This page took 0.024735 seconds and 5 git commands to generate.