linux_dsm_epyc7002/drivers/pinctrl/mediatek
Julia Lawall 03e9888f95 pinctrl: mediatek: constify gpio_chip structures
These structures are only used to copy into other structures, so declare
them as const.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r disable optional_qualifier@
identifier i;
position p;
@@
static struct gpio_chip i@p = { ... };

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

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

@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
 struct gpio_chip i = { ... };
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2016-09-13 10:39:33 +02:00
..
Kconfig
Makefile
pinctrl-mt2701.c
pinctrl-mt6397.c
pinctrl-mt7623.c
pinctrl-mt8127.c
pinctrl-mt8135.c
pinctrl-mt8173.c
pinctrl-mtk-common.c pinctrl: mediatek: constify gpio_chip structures 2016-09-13 10:39:33 +02:00
pinctrl-mtk-common.h
pinctrl-mtk-mt2701.h
pinctrl-mtk-mt6397.h
pinctrl-mtk-mt7623.h
pinctrl-mtk-mt8127.h
pinctrl-mtk-mt8135.h
pinctrl-mtk-mt8173.h