diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2021-06-05 21:59:07 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2021-06-09 12:18:33 +0300 |
commit | d9779093676bd8743ba2e1cd971f4eabb15c060d (patch) | |
tree | 68dddb8df0a1c23c35daade53cda29aa915b6aba /drivers/pinctrl/bcm/pinctrl-bcm6362.c | |
parent | a49a8717d8693b339fb2b62e5846286d6126de7d (diff) | |
download | linux-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-bcm6362.c')
-rw-r--r-- | drivers/pinctrl/bcm/pinctrl-bcm6362.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/bcm/pinctrl-bcm6362.c b/drivers/pinctrl/bcm/pinctrl-bcm6362.c index 40ef495b6301..a9e8178268ed 100644 --- a/drivers/pinctrl/bcm/pinctrl-bcm6362.c +++ b/drivers/pinctrl/bcm/pinctrl-bcm6362.c @@ -571,7 +571,7 @@ static int bcm6362_gpio_request_enable(struct pinctrl_dev *pctldev, return 0; } -static struct pinctrl_ops bcm6362_pctl_ops = { +static const struct pinctrl_ops bcm6362_pctl_ops = { .dt_free_map = pinctrl_utils_free_map, .dt_node_to_map = pinconf_generic_dt_node_to_map_pin, .get_group_name = bcm6362_pinctrl_get_group_name, |