linux-stable/drivers/video/fbdev/matrox
Bhumika Goyal 58ec01ceba video: fbdev: make fb_videomode const
Make these const as they are only passed to a const argument of the
function fb_find_mode.

Done using Coccinelle.

@match disable optional_qualifier@
identifier s;
@@
static struct fb_videomode s = {...};

@ref@
position p;
identifier match.s;
@@
s@p

@good1@
identifier match.s;
expression list[5] es;
position ref.p;
@@
fb_find_mode(es,&s@p,...)

@bad depends on  !good1@
position ref.p;
identifier match.s;
@@
s@p

@depends on forall !bad disable optional_qualifier@
identifier match.s;
@@
static
+ const
struct fb_videomode s;

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Cc: Julia Lawall <julia.lawall@lip6.fr>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Russell King <linux@armlinux.org.uk>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
2017-09-04 16:00:49 +02:00
..
g450_pll.c
g450_pll.h
i2c-matroxfb.c
Makefile
matroxfb_accel.c
matroxfb_accel.h
matroxfb_base.c video: fbdev: make fb_videomode const 2017-09-04 16:00:49 +02:00
matroxfb_base.h PCI: Remove includes of asm/pci-bridge.h 2016-02-05 16:29:28 -06:00
matroxfb_crtc2.c
matroxfb_crtc2.h
matroxfb_DAC1064.c video: fbdev: matroxfb: use designated initializers 2017-01-11 17:09:50 +01:00
matroxfb_DAC1064.h
matroxfb_g450.c matroxfb: constify local structures 2016-09-27 11:14:28 +03:00
matroxfb_g450.h
matroxfb_maven.c video: fbdev: matrox: use c99 initializers in structures 2014-08-26 15:52:38 +03:00
matroxfb_maven.h
matroxfb_misc.c
matroxfb_misc.h
matroxfb_Ti3026.c video: fbdev: matroxfb: use designated initializers 2017-01-11 17:09:50 +01:00
matroxfb_Ti3026.h