mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2026-01-03 10:16:02 +00:00
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> |
||
|---|---|---|
| .. | ||
| 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-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 | ||