]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tilcdc: plane: Make structure tilcdc_plane_funcs constant
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Tue, 13 Aug 2019 09:05:03 +0000 (14:35 +0530)
committerJyri Sarha <jsarha@ti.com>
Mon, 7 Oct 2019 18:37:20 +0000 (21:37 +0300)
commit4fcac57bdb7c63d317945e562138616cbc6b3760
tree06db565d738fcf76dfbccf01b3a1f34455feebc6
parentcbbed75cfa266ff51536588d0170c34272a27fae
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
drivers/gpu/drm/tilcdc/tilcdc_plane.c