Skip to content

Commit fba3baa

Browse files
gaurijhangianiJyri Sarha
authored andcommitted
drm/tilcdc: plane: Make structure tilcdc_plane_funcs constant
The static structure tilcdc_plane_funcs, of type drm_plane_funcs, is used only when passed the fourth argument to drm_plane_init(); however, this fourth parameter is declared as const in the function definition. Hence make tilcdc_plane_funcs constant as well. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> Signed-off-by: Jyri Sarha <jsarha@ti.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190813090503.9063-1-nishkadg.linux@gmail.com
1 parent bee447e commit fba3baa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/tilcdc/tilcdc_plane.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#include "tilcdc_drv.h"
1313

14-
static struct drm_plane_funcs tilcdc_plane_funcs = {
14+
static const struct drm_plane_funcs tilcdc_plane_funcs = {
1515
.update_plane = drm_atomic_helper_update_plane,
1616
.disable_plane = drm_atomic_helper_disable_plane,
1717
.destroy = drm_plane_cleanup,

0 commit comments

Comments
 (0)