]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/fb-cma-helper: Use const for drm_framebuffer_funcs argument
authorNoralf Trønnes <noralf@tronnes.org>
Thu, 12 May 2016 18:25:21 +0000 (20:25 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 17 May 2016 07:08:27 +0000 (09:08 +0200)
drm_framebuffer_init() uses const for the drm_framebuffer_funcs
argument so use that on drm_fb_cma_alloc() and
drm_fbdev_cma_create_with_funcs() as well.

Cc: laurent.pinchart@ideasonboard.com
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1463077523-23959-2-git-send-email-noralf@tronnes.org
drivers/gpu/drm/drm_fb_cma_helper.c
include/drm/drm_fb_cma_helper.h

index 72db38ef4f11dd2c5b37417ffba36f1000d10283..378360b23ea0ebb0f5af26df3191f8667f833468 100644 (file)
@@ -133,7 +133,7 @@ static struct drm_framebuffer_funcs drm_fb_cma_funcs = {
 static struct drm_fb_cma *drm_fb_cma_alloc(struct drm_device *dev,
        const struct drm_mode_fb_cmd2 *mode_cmd,
        struct drm_gem_cma_object **obj,
-       unsigned int num_planes, struct drm_framebuffer_funcs *funcs)
+       unsigned int num_planes, const struct drm_framebuffer_funcs *funcs)
 {
        struct drm_fb_cma *fb_cma;
        int ret;
@@ -350,7 +350,7 @@ static void drm_fbdev_cma_defio_fini(struct fb_info *fbi)
  */
 int drm_fbdev_cma_create_with_funcs(struct drm_fb_helper *helper,
        struct drm_fb_helper_surface_size *sizes,
-       struct drm_framebuffer_funcs *funcs)
+       const struct drm_framebuffer_funcs *funcs)
 {
        struct drm_fbdev_cma *fbdev_cma = to_fbdev_cma(helper);
        struct drm_mode_fb_cmd2 mode_cmd = { 0 };
index c6d9c9c55794ce8fa3db6d0fe5e62a9c6c1c4766..ac38a05e2dc981f83ad6b7e455419626474aa8e6 100644 (file)
@@ -25,7 +25,7 @@ void drm_fbdev_cma_restore_mode(struct drm_fbdev_cma *fbdev_cma);
 void drm_fbdev_cma_hotplug_event(struct drm_fbdev_cma *fbdev_cma);
 int drm_fbdev_cma_create_with_funcs(struct drm_fb_helper *helper,
        struct drm_fb_helper_surface_size *sizes,
-       struct drm_framebuffer_funcs *funcs);
+       const struct drm_framebuffer_funcs *funcs);
 
 void drm_fb_cma_destroy(struct drm_framebuffer *fb);
 int drm_fb_cma_create_handle(struct drm_framebuffer *fb,