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>

authored by Nishka Dasgupta and committed by Miguel Ojeda a180d023 d1abaeb3

Changed files
+2 -2
drivers
auxdisplay
+2 -2
drivers/auxdisplay/ht16k33.c
··· 74 74 struct ht16k33_fbdev fbdev; 75 75 }; 76 76 77 - static struct fb_fix_screeninfo ht16k33_fb_fix = { 77 + static const struct fb_fix_screeninfo ht16k33_fb_fix = { 78 78 .id = DRIVER_NAME, 79 79 .type = FB_TYPE_PACKED_PIXELS, 80 80 .visual = FB_VISUAL_MONO10, ··· 85 85 .accel = FB_ACCEL_NONE, 86 86 }; 87 87 88 - static struct fb_var_screeninfo ht16k33_fb_var = { 88 + static const struct fb_var_screeninfo ht16k33_fb_var = { 89 89 .xres = HT16K33_MATRIX_LED_MAX_ROWS, 90 90 .yres = HT16K33_MATRIX_LED_MAX_COLS, 91 91 .xres_virtual = HT16K33_MATRIX_LED_MAX_ROWS,