From: Julia Lawall Date: Thu, 10 Aug 2017 10:06:15 +0000 (+0200) Subject: pinctrl: armada-37xx: constify pinconf_ops, pinctrl_ops, and pinmux_ops structures X-Git-Tag: v4.14-rc1~142^2~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b4e2ba4242bd595dff16cb85676995cc7fb5b32;p=platform%2Fkernel%2Flinux-exynos.git 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: Julia Lawall Signed-off-by: Linus Walleij --- diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c index 4b61f25..b8b6ab0 100644 --- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c +++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c @@ -254,7 +254,7 @@ static int armada_37xx_pin_config_group_set(struct pinctrl_dev *pctldev, return -ENOTSUPP; } -static struct pinconf_ops armada_37xx_pinconf_ops = { +static const struct pinconf_ops armada_37xx_pinconf_ops = { .is_generic = true, .pin_config_group_get = armada_37xx_pin_config_group_get, .pin_config_group_set = armada_37xx_pin_config_group_set,