drm/aspeed: gfc_crtc: Make structure aspeed_gfx_funcs constant
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Tue, 13 Aug 2019 06:33:55 +0000 (12:03 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 14 Aug 2019 17:27:26 +0000 (19:27 +0200)
commit95cbf02b8a5d93d8404b5568ebf6862e87314ead
tree3cdada2fefff0d2f37bce46531d9d40f2a73629f
parent535d1b947ba3bb6d37791277bf71f1c848522e6c
drm/aspeed: gfc_crtc: Make structure aspeed_gfx_funcs constant

The static structure aspeed_gfx_funcs, of type
drm_simple_display_pipe_funcs, is used only as an argument to
drm_simple_display_pipe_init(), which does not modify it. Hence make it
constant to protect it from unintended modification.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190813063355.25549-1-nishkadg.linux@gmail.com
drivers/gpu/drm/aspeed/aspeed_gfx_crtc.c