drm/vboxvideo: Make structure vbox_fb_helper_funcs constant
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Tue, 13 Aug 2019 06:25:48 +0000 (11:55 +0530)
committerHans de Goede <hdegoede@redhat.com>
Sun, 18 Aug 2019 10:52:52 +0000 (12:52 +0200)
commit596cb85218d7aff659b99bbaa50059f48d00d971
tree5e8d0cc51247e70db136d84041f22cfd48264f41
parentf2cb60e9a3881e679465f84140754bc9d29956ea
drm/vboxvideo: Make structure vbox_fb_helper_funcs constant

The static structure vbox_fb_helper_funcs, of type drm_fb_helper_funcs,
is used only when it is passed as the third argument to
drm_fb_helper_fbdev_setup(), which does not modify it. Hence make it
constant to protect it from unintended modifications.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190813062548.24770-1-nishkadg.linux@gmail.com
drivers/gpu/drm/vboxvideo/vbox_drv.c