aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/bcm/pinctrl-bcm63xx.h
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2021-06-05 20:59:08 +0200
committerLinus Walleij <linus.walleij@linaro.org>2021-06-09 11:18:33 +0200
commit0c6838767236c9348e05b3f54361a89ec03adc84 (patch)
tree8e2d12e741b8622c7cb22090863e880df25f8900 /drivers/pinctrl/bcm/pinctrl-bcm63xx.h
parentpinctrl: bcm: Constify static pinctrl_ops (diff)
downloadlinux-dev-0c6838767236c9348e05b3f54361a89ec03adc84.tar.xz
linux-dev-0c6838767236c9348e05b3f54361a89ec03adc84.zip
pinctrl: bcm: Constify static pinmux_ops
These are only assigned, either directly or via the bcm63xx_pinctrl_soc struct, to the pmxops 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-3-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 c135477ec768..d58c8cd5b6b8 100644
--- a/drivers/pinctrl/bcm/pinctrl-bcm63xx.h
+++ b/drivers/pinctrl/bcm/pinctrl-bcm63xx.h
@@ -13,7 +13,7 @@
struct bcm63xx_pinctrl_soc {
const struct pinctrl_ops *pctl_ops;
- struct pinmux_ops *pmx_ops;
+ const struct pinmux_ops *pmx_ops;
const struct pinctrl_pin_desc *pins;
unsigned npins;