alistair23-linux/drivers/auxdisplay
Gustavo A. R. Silva 7223310f4e auxdisplay: cfag12864bfb: constify fb_fix_screeninfo and fb_var_screeninfo structures
These structures are only used to copy into other structures,
so declare them as const.

This issue was detected using Coccinelle and the following semantic patch:

@r disable optional_qualifier@
identifier i;
position p;
@@
static struct fb_fix_screeninfo i@p = { ... };

@ok@
identifier r.i;
expression e;
position p;
@@
e = i@p

@bad@
position p != {r.p,ok.p};
identifier r.i;
struct fb_fix_screeninfo e;
@@
e@i@p

@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
 struct fb_fix_screeninfo i = { ... };

The semantic patch for fb_var_screeninfo is analogous.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
2018-04-12 19:02:42 +02:00
..
arm-charlcd.c auxdisplay: arm-charlcd: Fix struct charlcd doc line 2018-04-12 19:02:41 +02:00
cfag12864b.c
cfag12864bfb.c auxdisplay: cfag12864bfb: constify fb_fix_screeninfo and fb_var_screeninfo structures 2018-04-12 19:02:42 +02:00
charlcd.c auxdisplay: charlcd: properly restore atomic counter on error path 2017-09-18 16:06:00 +02:00
hd44780.c auxdisplay: hd44780: Fix DT properties to include units of measurement 2017-04-08 17:48:19 +02:00
ht16k33.c auxdisplay: ht16k33: use le16_to_cpup() to fetch LE16 data 2017-04-08 17:48:20 +02:00
img-ascii-lcd.c auxdisplay: img-ascii-lcd: Silence 2 uninitialized warnings 2018-03-13 18:16:38 +01:00
Kconfig auxdisplay: img-ascii-lcd: fix typo on select SYSCON/MFD_SYSCON 2018-04-12 19:02:41 +02:00
ks0108.c
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
panel.c auxdisplay: panel: Change comments to silence fallthrough warnings 2018-03-13 18:12:09 +01:00