linux/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 pinctrl: mediatek: Add Pinctrl/GPIO/EINT driver for MT7623 2016-02-19 10:05:14 +01:00
Makefile pinctrl: mediatek: Add Pinctrl/GPIO/EINT driver for MT7623 2016-02-19 10:05:14 +01:00
pinctrl-mt2701.c pinctrl: mtk2701: skip setting .owner 2016-02-17 17:08:47 +01:00
pinctrl-mt6397.c pinctrl: pinctrl-mt6397 driver explicitly non-modular 2016-03-09 10:22:54 +07:00
pinctrl-mt7623.c pinctrl: mediatek/7623: delete unnecessary .owner 2016-02-25 16:25:55 +01:00
pinctrl-mt8127.c pinctrl: mediatek: mt8* make driver explicitly non-modular 2016-01-27 14:59:31 +01:00
pinctrl-mt8135.c pinctrl: mediatek: mt8* make driver explicitly non-modular 2016-01-27 14:59:31 +01:00
pinctrl-mt8173.c pinctrl: mediatek: mt8* make driver explicitly non-modular 2016-01-27 14:59:31 +01:00
pinctrl-mtk-common.c pinctrl: mediatek: constify gpio_chip structures 2016-09-13 10:39:33 +02:00
pinctrl-mtk-common.h pinctrl: mediatek: Add Pinctrl/GPIO/EINT driver for mt2701 2016-01-28 11:12:03 +01:00
pinctrl-mtk-mt2701.h pinctrl: mediatek: Add Pinctrl/GPIO/EINT driver for mt2701 2016-01-28 11:12:03 +01:00
pinctrl-mtk-mt6397.h pinctrl: mediatek: Add Pinctrl/GPIO driver for mt6397. 2015-05-19 11:16:17 +02:00
pinctrl-mtk-mt7623.h pinctrl: mediatek: Add Pinctrl/GPIO/EINT driver for MT7623 2016-02-19 10:05:14 +01:00
pinctrl-mtk-mt8127.h pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt8127 2015-05-19 11:17:45 +02:00
pinctrl-mtk-mt8135.h pinctrl: mediatek: Fix include directive 2015-03-18 10:58:21 +01:00
pinctrl-mtk-mt8173.h pinctrl: mediatek: mt8135/mt8173: Fix build error due to missing include file 2015-03-18 13:06:09 +01:00