Skip to content

Commit

Permalink
drm/tilcdc: plane: Make structure tilcdc_plane_funcs constant
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gaurijhangiani authored and Jyri Sarha committed Oct 7, 2019
1 parent bee447e commit fba3baa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/tilcdc/tilcdc_plane.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "tilcdc_drv.h"

static struct drm_plane_funcs tilcdc_plane_funcs = {
static const struct drm_plane_funcs tilcdc_plane_funcs = {
.update_plane = drm_atomic_helper_update_plane,
.disable_plane = drm_atomic_helper_disable_plane,
.destroy = drm_plane_cleanup,
Expand Down

0 comments on commit fba3baa

Please sign in to comment.