diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2017-08-10 12:06:13 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-08-22 14:36:25 +0200 |
commit | 7b2f016c3bf5c5b61979f8d4cfe5f1eb217e3b7c (patch) | |
tree | bce05be10e143ccf6039de68da9ac09d2de0cdb1 /drivers/pinctrl/bcm/pinctrl-bcm281xx.c | |
parent | pinctrl: uniphier: add Audio out pin-mux settings (diff) | |
download | linux-7b2f016c3bf5c5b61979f8d4cfe5f1eb217e3b7c.tar.xz linux-7b2f016c3bf5c5b61979f8d4cfe5f1eb217e3b7c.zip |
pinctrl: bcm281xx: constify pinconf_ops, pinctrl_ops, and pinmux_ops structures
This pinconf_ops structure is only stored in the const confops
field of a pinctrl_desc structure. Make the pinconf_ops structure
const as well.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/bcm/pinctrl-bcm281xx.c')
-rw-r--r-- | drivers/pinctrl/bcm/pinctrl-bcm281xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/bcm/pinctrl-bcm281xx.c b/drivers/pinctrl/bcm/pinctrl-bcm281xx.c index a7cceffcedfa..bc3b232a727a 100644 --- a/drivers/pinctrl/bcm/pinctrl-bcm281xx.c +++ b/drivers/pinctrl/bcm/pinctrl-bcm281xx.c @@ -1384,7 +1384,7 @@ static int bcm281xx_pinctrl_pin_config_set(struct pinctrl_dev *pctldev, return 0; } -static struct pinconf_ops bcm281xx_pinctrl_pinconf_ops = { +static const struct pinconf_ops bcm281xx_pinctrl_pinconf_ops = { .pin_config_get = bcm281xx_pinctrl_pin_config_get, .pin_config_set = bcm281xx_pinctrl_pin_config_set, }; |