diff options
author | Nishka Dasgupta <nishkadg.linux@gmail.com> | 2019-08-13 14:35:03 +0530 |
---|---|---|
committer | Jyri Sarha <jsarha@ti.com> | 2019-10-07 21:37:20 +0300 |
commit | fba3baa8d2be7b37748e0ed8345d2d3d6f17f9fd (patch) | |
tree | 06db565d738fcf76dfbccf01b3a1f34455feebc6 /drivers/gpu/drm/tilcdc/tilcdc_plane.c | |
parent | bee447e224b2645911c5d06e35dc90d8433fcef6 (diff) |
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
Diffstat (limited to 'drivers/gpu/drm/tilcdc/tilcdc_plane.c')
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_plane.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_plane.c b/drivers/gpu/drm/tilcdc/tilcdc_plane.c index 3abb9641f212..e2090020b3a0 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_plane.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_plane.c @@ -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, |