From: Julia Lawall Date: Thu, 10 Aug 2017 10:06:13 +0000 (+0200) Subject: pinctrl: bcm281xx: constify pinconf_ops, pinctrl_ops, and pinmux_ops structures X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7b2f016c3bf5c5b61979f8d4cfe5f1eb217e3b7c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Linus Walleij --- 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, };