Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/fb-cma-helper: Use const for drm_framebuffer_funcs argument

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

authored by

Noralf Trønnes and committed by
Daniel Vetter
fdce1846 fabd9106

+3 -3
+2 -2
drivers/gpu/drm/drm_fb_cma_helper.c
··· 133 133 static struct drm_fb_cma *drm_fb_cma_alloc(struct drm_device *dev, 134 134 const struct drm_mode_fb_cmd2 *mode_cmd, 135 135 struct drm_gem_cma_object **obj, 136 - unsigned int num_planes, struct drm_framebuffer_funcs *funcs) 136 + unsigned int num_planes, const struct drm_framebuffer_funcs *funcs) 137 137 { 138 138 struct drm_fb_cma *fb_cma; 139 139 int ret; ··· 350 350 */ 351 351 int drm_fbdev_cma_create_with_funcs(struct drm_fb_helper *helper, 352 352 struct drm_fb_helper_surface_size *sizes, 353 - struct drm_framebuffer_funcs *funcs) 353 + const struct drm_framebuffer_funcs *funcs) 354 354 { 355 355 struct drm_fbdev_cma *fbdev_cma = to_fbdev_cma(helper); 356 356 struct drm_mode_fb_cmd2 mode_cmd = { 0 };
+1 -1
include/drm/drm_fb_cma_helper.h
··· 25 25 void drm_fbdev_cma_hotplug_event(struct drm_fbdev_cma *fbdev_cma); 26 26 int drm_fbdev_cma_create_with_funcs(struct drm_fb_helper *helper, 27 27 struct drm_fb_helper_surface_size *sizes, 28 - struct drm_framebuffer_funcs *funcs); 28 + const struct drm_framebuffer_funcs *funcs); 29 29 30 30 void drm_fb_cma_destroy(struct drm_framebuffer *fb); 31 31 int drm_fb_cma_create_handle(struct drm_framebuffer *fb,