drm: Pass the user drm_mode_fb_cmd2 as const to .fb_create()
[deliverable/linux.git] / drivers / gpu / drm / drm_fb_cma_helper.c
index c19a62561183537046dc896254d09d4ac3a70b1e..b7d5b848d2f89a535e22b6ea9b7987e7e3b9bea8 100644 (file)
@@ -74,7 +74,7 @@ static struct drm_framebuffer_funcs drm_fb_cma_funcs = {
 };
 
 static struct drm_fb_cma *drm_fb_cma_alloc(struct drm_device *dev,
-       struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_cma_object **obj,
+       const const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_cma_object **obj,
        unsigned int num_planes)
 {
        struct drm_fb_cma *fb_cma;
@@ -107,7 +107,7 @@ static struct drm_fb_cma *drm_fb_cma_alloc(struct drm_device *dev,
  * checked before calling this function.
  */
 struct drm_framebuffer *drm_fb_cma_create(struct drm_device *dev,
-       struct drm_file *file_priv, struct drm_mode_fb_cmd2 *mode_cmd)
+       struct drm_file *file_priv, const struct drm_mode_fb_cmd2 *mode_cmd)
 {
        struct drm_fb_cma *fb_cma;
        struct drm_gem_cma_object *objs[4];
This page took 0.025893 seconds and 5 git commands to generate.