]> git.baikalelectronics.ru Git - kernel.git/commit
auxdisplay: ht16k33: Make ht16k33_fb_fix and ht16k33_fb_var constant
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Mon, 19 Aug 2019 07:51:26 +0000 (13:21 +0530)
committerMiguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Tue, 20 Aug 2019 09:48:54 +0000 (11:48 +0200)
commitbc67a086a1a66c36ece7215e19c3a96bae16705c
treea21e6b6b65ee034e5bfcb57d2dfd92bf542fc895
parent6b38d225a6294690a0d8bba8e80aab3c00f2d685
auxdisplay: ht16k33: Make ht16k33_fb_fix and ht16k33_fb_var constant

The static structures ht16k33_fb_fix and ht16k33_fb_var, of types
fb_fix_screeninfo and fb_var_screeninfo respectively, are not used
except to be copied into other variables. Hence make both of them
constant to prevent unintended modification.
Issue found with
Coccinelle.

Acked-by: Robin van der Gracht <robin@protonic.nl>
Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
drivers/auxdisplay/ht16k33.c