Commit 9b4e2ba4 authored by Julia Lawall's avatar Julia Lawall Committed by Linus Walleij

pinctrl: armada-37xx: constify pinconf_ops, pinctrl_ops, and pinmux_ops structures

This pinconf_ops structure is only stored in the const pinconf_ops
field of a pinctrl_desc structure. Make the pinconf_ops structure
const as well.

Done with the help of Coccinelle.
Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent d82a9700
...@@ -254,7 +254,7 @@ static int armada_37xx_pin_config_group_set(struct pinctrl_dev *pctldev, ...@@ -254,7 +254,7 @@ static int armada_37xx_pin_config_group_set(struct pinctrl_dev *pctldev,
return -ENOTSUPP; return -ENOTSUPP;
} }
static struct pinconf_ops armada_37xx_pinconf_ops = { static const struct pinconf_ops armada_37xx_pinconf_ops = {
.is_generic = true, .is_generic = true,
.pin_config_group_get = armada_37xx_pin_config_group_get, .pin_config_group_get = armada_37xx_pin_config_group_get,
.pin_config_group_set = armada_37xx_pin_config_group_set, .pin_config_group_set = armada_37xx_pin_config_group_set,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment