linux/drivers/pinctrl/stm32
Julia Lawall d9048cdbc9 pinctrl: stm32: 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:37:37 +02:00
..
Kconfig pinctrl: Add IRQ support to STM32 gpios 2016-09-13 10:13:01 +02:00
Makefile pinctrl: Add STM32F746 MCU support 2016-07-11 14:35:44 +02:00
pinctrl-stm32.c pinctrl: stm32: constify gpio_chip structures 2016-09-13 10:37:37 +02:00
pinctrl-stm32.h pinctrl: stm32: Remove dependency with DT bindings header files 2016-02-09 10:52:28 +01:00
pinctrl-stm32f429.c pinctrl: stm32: make explicitly non-modular 2016-03-09 10:24:54 +07:00
pinctrl-stm32f746.c pinctrl: Add STM32F746 MCU support 2016-07-11 14:35:44 +02:00