summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/bcm/pinctrl-bcm63xx.h
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2021-06-05 21:59:07 +0300
committerLinus Walleij <linus.walleij@linaro.org>2021-06-09 12:18:33 +0300
commitd9779093676bd8743ba2e1cd971f4eabb15c060d (patch)
tree68dddb8df0a1c23c35daade53cda29aa915b6aba /drivers/pinctrl/bcm/pinctrl-bcm63xx.h
parenta49a8717d8693b339fb2b62e5846286d6126de7d (diff)
downloadlinux-d9779093676bd8743ba2e1cd971f4eabb15c060d.tar.xz
pinctrl: bcm: Constify static pinctrl_ops
These are only assigned, either directly or via the bcm63xx_pinctrl_soc struct, to the pctlops field in the pinctrl_desc struct and never modified, so make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Link: https://lore.kernel.org/r/20210605185908.39982-2-rikard.falkeborn@gmail.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/bcm/pinctrl-bcm63xx.h')
-rw-r--r--drivers/pinctrl/bcm/pinctrl-bcm63xx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/bcm/pinctrl-bcm63xx.h b/drivers/pinctrl/bcm/pinctrl-bcm63xx.h
index 3bdb50021f1b..c135477ec768 100644
--- a/drivers/pinctrl/bcm/pinctrl-bcm63xx.h
+++ b/drivers/pinctrl/bcm/pinctrl-bcm63xx.h
@@ -12,7 +12,7 @@
#define BCM63XX_BANK_GPIOS 32
struct bcm63xx_pinctrl_soc {
- struct pinctrl_ops *pctl_ops;
+ const struct pinctrl_ops *pctl_ops;
struct pinmux_ops *pmx_ops;
const struct pinctrl_pin_desc *pins;