mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 15:06:42 +07:00
03e9888f95
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 |