diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-02-16 04:25:07 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-03-06 23:27:29 -0500 |
commit | 022ab148d28e8466e45d28552224e3029f1cccd8 (patch) | |
tree | 8af19f47261c907bb944c0403ba78a493f4d4906 | |
parent | a72149e82b65b76d2dae5428a6b211eb43933529 (diff) |
pinctrl: Declare operation structures as const
The pinconf, pinctrl and pinmux operation structures hold function
pointers that are never modified. Declare them as const.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/pinctrl/devicetree.c | 4 | ||||
-rw-r--r-- | drivers/pinctrl/mvebu/pinctrl-mvebu.c | 6 | ||||
-rw-r--r-- | drivers/pinctrl/pinconf.c | 2 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-abx500.c | 6 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-at91.c | 6 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-bcm2835.c | 6 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-exynos5440.c | 6 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-falcon.c | 2 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-imx.c | 6 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-lantiq.c | 4 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-mxs.c | 6 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-nomadik.c | 6 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-pxa3xx.c | 4 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-samsung.c | 6 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-single.c | 6 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-sirf.c | 4 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-sunxi.c | 6 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-tegra.c | 6 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-u300.c | 6 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-xway.c | 2 | ||||
-rw-r--r-- | drivers/pinctrl/spear/pinctrl-spear.c | 4 | ||||
-rw-r--r-- | include/linux/pinctrl/pinctrl.h | 6 |
22 files changed, 55 insertions, 55 deletions
diff --git a/drivers/pinctrl/devicetree.c b/drivers/pinctrl/devicetree.c index fd40a11ad645..c7b7cb477129 100644 --- a/drivers/pinctrl/devicetree.c +++ b/drivers/pinctrl/devicetree.c | |||
@@ -41,7 +41,7 @@ static void dt_free_map(struct pinctrl_dev *pctldev, | |||
41 | struct pinctrl_map *map, unsigned num_maps) | 41 | struct pinctrl_map *map, unsigned num_maps) |
42 | { | 42 | { |
43 | if (pctldev) { | 43 | if (pctldev) { |
44 | struct pinctrl_ops *ops = pctldev->desc->pctlops; | 44 | const struct pinctrl_ops *ops = pctldev->desc->pctlops; |
45 | ops->dt_free_map(pctldev, map, num_maps); | 45 | ops->dt_free_map(pctldev, map, num_maps); |
46 | } else { | 46 | } else { |
47 | /* There is no pctldev for PIN_MAP_TYPE_DUMMY_STATE */ | 47 | /* There is no pctldev for PIN_MAP_TYPE_DUMMY_STATE */ |
@@ -122,7 +122,7 @@ static int dt_to_map_one_config(struct pinctrl *p, const char *statename, | |||
122 | { | 122 | { |
123 | struct device_node *np_pctldev; | 123 | struct device_node *np_pctldev; |
124 | struct pinctrl_dev *pctldev; | 124 | struct pinctrl_dev *pctldev; |
125 | struct pinctrl_ops *ops; | 125 | const struct pinctrl_ops *ops; |
126 | int ret; | 126 | int ret; |
127 | struct pinctrl_map *map; | 127 | struct pinctrl_map *map; |
128 | unsigned num_maps; | 128 | unsigned num_maps; |
diff --git a/drivers/pinctrl/mvebu/pinctrl-mvebu.c b/drivers/pinctrl/mvebu/pinctrl-mvebu.c index c689c04a4f52..61149914882d 100644 --- a/drivers/pinctrl/mvebu/pinctrl-mvebu.c +++ b/drivers/pinctrl/mvebu/pinctrl-mvebu.c | |||
@@ -263,7 +263,7 @@ static void mvebu_pinconf_group_dbg_show(struct pinctrl_dev *pctldev, | |||
263 | return; | 263 | return; |
264 | } | 264 | } |
265 | 265 | ||
266 | static struct pinconf_ops mvebu_pinconf_ops = { | 266 | static const struct pinconf_ops mvebu_pinconf_ops = { |
267 | .pin_config_group_get = mvebu_pinconf_group_get, | 267 | .pin_config_group_get = mvebu_pinconf_group_get, |
268 | .pin_config_group_set = mvebu_pinconf_group_set, | 268 | .pin_config_group_set = mvebu_pinconf_group_set, |
269 | .pin_config_group_dbg_show = mvebu_pinconf_group_dbg_show, | 269 | .pin_config_group_dbg_show = mvebu_pinconf_group_dbg_show, |
@@ -369,7 +369,7 @@ static int mvebu_pinmux_gpio_set_direction(struct pinctrl_dev *pctldev, | |||
369 | return -ENOTSUPP; | 369 | return -ENOTSUPP; |
370 | } | 370 | } |
371 | 371 | ||
372 | static struct pinmux_ops mvebu_pinmux_ops = { | 372 | static const struct pinmux_ops mvebu_pinmux_ops = { |
373 | .get_functions_count = mvebu_pinmux_get_funcs_count, | 373 | .get_functions_count = mvebu_pinmux_get_funcs_count, |
374 | .get_function_name = mvebu_pinmux_get_func_name, | 374 | .get_function_name = mvebu_pinmux_get_func_name, |
375 | .get_function_groups = mvebu_pinmux_get_groups, | 375 | .get_function_groups = mvebu_pinmux_get_groups, |
@@ -470,7 +470,7 @@ static void mvebu_pinctrl_dt_free_map(struct pinctrl_dev *pctldev, | |||
470 | kfree(map); | 470 | kfree(map); |
471 | } | 471 | } |
472 | 472 | ||
473 | static struct pinctrl_ops mvebu_pinctrl_ops = { | 473 | static const struct pinctrl_ops mvebu_pinctrl_ops = { |
474 | .get_groups_count = mvebu_pinctrl_get_groups_count, | 474 | .get_groups_count = mvebu_pinctrl_get_groups_count, |
475 | .get_group_name = mvebu_pinctrl_get_group_name, | 475 | .get_group_name = mvebu_pinctrl_get_group_name, |
476 | .get_group_pins = mvebu_pinctrl_get_group_pins, | 476 | .get_group_pins = mvebu_pinctrl_get_group_pins, |
diff --git a/drivers/pinctrl/pinconf.c b/drivers/pinctrl/pinconf.c index ac8d382a79bb..8aefd28c797e 100644 --- a/drivers/pinctrl/pinconf.c +++ b/drivers/pinctrl/pinconf.c | |||
@@ -670,7 +670,7 @@ static int pinconf_dbg_config_print(struct seq_file *s, void *d) | |||
670 | struct pinctrl_maps *maps_node; | 670 | struct pinctrl_maps *maps_node; |
671 | struct pinctrl_map const *map; | 671 | struct pinctrl_map const *map; |
672 | struct pinctrl_dev *pctldev = NULL; | 672 | struct pinctrl_dev *pctldev = NULL; |
673 | struct pinconf_ops *confops = NULL; | 673 | const struct pinconf_ops *confops = NULL; |
674 | int i, j; | 674 | int i, j; |
675 | bool found = false; | 675 | bool found = false; |
676 | 676 | ||
diff --git a/drivers/pinctrl/pinctrl-abx500.c b/drivers/pinctrl/pinctrl-abx500.c index caecdd373061..169d72c59a7b 100644 --- a/drivers/pinctrl/pinctrl-abx500.c +++ b/drivers/pinctrl/pinctrl-abx500.c | |||
@@ -656,7 +656,7 @@ static void abx500_gpio_disable_free(struct pinctrl_dev *pctldev, | |||
656 | { | 656 | { |
657 | } | 657 | } |
658 | 658 | ||
659 | static struct pinmux_ops abx500_pinmux_ops = { | 659 | static const struct pinmux_ops abx500_pinmux_ops = { |
660 | .get_functions_count = abx500_pmx_get_funcs_cnt, | 660 | .get_functions_count = abx500_pmx_get_funcs_cnt, |
661 | .get_function_name = abx500_pmx_get_func_name, | 661 | .get_function_name = abx500_pmx_get_func_name, |
662 | .get_function_groups = abx500_pmx_get_func_groups, | 662 | .get_function_groups = abx500_pmx_get_func_groups, |
@@ -704,7 +704,7 @@ static void abx500_pin_dbg_show(struct pinctrl_dev *pctldev, | |||
704 | chip->base + offset - 1); | 704 | chip->base + offset - 1); |
705 | } | 705 | } |
706 | 706 | ||
707 | static struct pinctrl_ops abx500_pinctrl_ops = { | 707 | static const struct pinctrl_ops abx500_pinctrl_ops = { |
708 | .get_groups_count = abx500_get_groups_cnt, | 708 | .get_groups_count = abx500_get_groups_cnt, |
709 | .get_group_name = abx500_get_group_name, | 709 | .get_group_name = abx500_get_group_name, |
710 | .get_group_pins = abx500_get_group_pins, | 710 | .get_group_pins = abx500_get_group_pins, |
@@ -778,7 +778,7 @@ int abx500_pin_config_set(struct pinctrl_dev *pctldev, | |||
778 | return ret; | 778 | return ret; |
779 | } | 779 | } |
780 | 780 | ||
781 | static struct pinconf_ops abx500_pinconf_ops = { | 781 | static const struct pinconf_ops abx500_pinconf_ops = { |
782 | .pin_config_get = abx500_pin_config_get, | 782 | .pin_config_get = abx500_pin_config_get, |
783 | .pin_config_set = abx500_pin_config_set, | 783 | .pin_config_set = abx500_pin_config_set, |
784 | }; | 784 | }; |
diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index 75933a6aa828..e50fa5f863e1 100644 --- a/drivers/pinctrl/pinctrl-at91.c +++ b/drivers/pinctrl/pinctrl-at91.c | |||
@@ -294,7 +294,7 @@ static void at91_dt_free_map(struct pinctrl_dev *pctldev, | |||
294 | { | 294 | { |
295 | } | 295 | } |
296 | 296 | ||
297 | static struct pinctrl_ops at91_pctrl_ops = { | 297 | static const struct pinctrl_ops at91_pctrl_ops = { |
298 | .get_groups_count = at91_get_groups_count, | 298 | .get_groups_count = at91_get_groups_count, |
299 | .get_group_name = at91_get_group_name, | 299 | .get_group_name = at91_get_group_name, |
300 | .get_group_pins = at91_get_group_pins, | 300 | .get_group_pins = at91_get_group_pins, |
@@ -696,7 +696,7 @@ static void at91_gpio_disable_free(struct pinctrl_dev *pctldev, | |||
696 | /* Set the pin to some default state, GPIO is usually default */ | 696 | /* Set the pin to some default state, GPIO is usually default */ |
697 | } | 697 | } |
698 | 698 | ||
699 | static struct pinmux_ops at91_pmx_ops = { | 699 | static const struct pinmux_ops at91_pmx_ops = { |
700 | .get_functions_count = at91_pmx_get_funcs_count, | 700 | .get_functions_count = at91_pmx_get_funcs_count, |
701 | .get_function_name = at91_pmx_get_func_name, | 701 | .get_function_name = at91_pmx_get_func_name, |
702 | .get_function_groups = at91_pmx_get_groups, | 702 | .get_function_groups = at91_pmx_get_groups, |
@@ -776,7 +776,7 @@ static void at91_pinconf_group_dbg_show(struct pinctrl_dev *pctldev, | |||
776 | { | 776 | { |
777 | } | 777 | } |
778 | 778 | ||
779 | static struct pinconf_ops at91_pinconf_ops = { | 779 | static const struct pinconf_ops at91_pinconf_ops = { |
780 | .pin_config_get = at91_pinconf_get, | 780 | .pin_config_get = at91_pinconf_get, |
781 | .pin_config_set = at91_pinconf_set, | 781 | .pin_config_set = at91_pinconf_set, |
782 | .pin_config_dbg_show = at91_pinconf_dbg_show, | 782 | .pin_config_dbg_show = at91_pinconf_dbg_show, |
diff --git a/drivers/pinctrl/pinctrl-bcm2835.c b/drivers/pinctrl/pinctrl-bcm2835.c index 4eb6d2c4e4df..f28d4b08771a 100644 --- a/drivers/pinctrl/pinctrl-bcm2835.c +++ b/drivers/pinctrl/pinctrl-bcm2835.c | |||
@@ -795,7 +795,7 @@ out: | |||
795 | return err; | 795 | return err; |
796 | } | 796 | } |
797 | 797 | ||
798 | static struct pinctrl_ops bcm2835_pctl_ops = { | 798 | static const struct pinctrl_ops bcm2835_pctl_ops = { |
799 | .get_groups_count = bcm2835_pctl_get_groups_count, | 799 | .get_groups_count = bcm2835_pctl_get_groups_count, |
800 | .get_group_name = bcm2835_pctl_get_group_name, | 800 | .get_group_name = bcm2835_pctl_get_group_name, |
801 | .get_group_pins = bcm2835_pctl_get_group_pins, | 801 | .get_group_pins = bcm2835_pctl_get_group_pins, |
@@ -872,7 +872,7 @@ static int bcm2835_pmx_gpio_set_direction(struct pinctrl_dev *pctldev, | |||
872 | return 0; | 872 | return 0; |
873 | } | 873 | } |
874 | 874 | ||
875 | static struct pinmux_ops bcm2835_pmx_ops = { | 875 | static const struct pinmux_ops bcm2835_pmx_ops = { |
876 | .get_functions_count = bcm2835_pmx_get_functions_count, | 876 | .get_functions_count = bcm2835_pmx_get_functions_count, |
877 | .get_function_name = bcm2835_pmx_get_function_name, | 877 | .get_function_name = bcm2835_pmx_get_function_name, |
878 | .get_function_groups = bcm2835_pmx_get_function_groups, | 878 | .get_function_groups = bcm2835_pmx_get_function_groups, |
@@ -916,7 +916,7 @@ static int bcm2835_pinconf_set(struct pinctrl_dev *pctldev, | |||
916 | return 0; | 916 | return 0; |
917 | } | 917 | } |
918 | 918 | ||
919 | static struct pinconf_ops bcm2835_pinconf_ops = { | 919 | static const struct pinconf_ops bcm2835_pinconf_ops = { |
920 | .pin_config_get = bcm2835_pinconf_get, | 920 | .pin_config_get = bcm2835_pinconf_get, |
921 | .pin_config_set = bcm2835_pinconf_set, | 921 | .pin_config_set = bcm2835_pinconf_set, |
922 | }; | 922 | }; |
diff --git a/drivers/pinctrl/pinctrl-exynos5440.c b/drivers/pinctrl/pinctrl-exynos5440.c index 1376eb7305db..169ea3e5f777 100644 --- a/drivers/pinctrl/pinctrl-exynos5440.c +++ b/drivers/pinctrl/pinctrl-exynos5440.c | |||
@@ -286,7 +286,7 @@ static void exynos5440_dt_free_map(struct pinctrl_dev *pctldev, | |||
286 | } | 286 | } |
287 | 287 | ||
288 | /* list of pinctrl callbacks for the pinctrl core */ | 288 | /* list of pinctrl callbacks for the pinctrl core */ |
289 | static struct pinctrl_ops exynos5440_pctrl_ops = { | 289 | static const struct pinctrl_ops exynos5440_pctrl_ops = { |
290 | .get_groups_count = exynos5440_get_group_count, | 290 | .get_groups_count = exynos5440_get_group_count, |
291 | .get_group_name = exynos5440_get_group_name, | 291 | .get_group_name = exynos5440_get_group_name, |
292 | .get_group_pins = exynos5440_get_group_pins, | 292 | .get_group_pins = exynos5440_get_group_pins, |
@@ -374,7 +374,7 @@ static int exynos5440_pinmux_gpio_set_direction(struct pinctrl_dev *pctldev, | |||
374 | } | 374 | } |
375 | 375 | ||
376 | /* list of pinmux callbacks for the pinmux vertical in pinctrl core */ | 376 | /* list of pinmux callbacks for the pinmux vertical in pinctrl core */ |
377 | static struct pinmux_ops exynos5440_pinmux_ops = { | 377 | static const struct pinmux_ops exynos5440_pinmux_ops = { |
378 | .get_functions_count = exynos5440_get_functions_count, | 378 | .get_functions_count = exynos5440_get_functions_count, |
379 | .get_function_name = exynos5440_pinmux_get_fname, | 379 | .get_function_name = exynos5440_pinmux_get_fname, |
380 | .get_function_groups = exynos5440_pinmux_get_groups, | 380 | .get_function_groups = exynos5440_pinmux_get_groups, |
@@ -523,7 +523,7 @@ static int exynos5440_pinconf_group_get(struct pinctrl_dev *pctldev, | |||
523 | } | 523 | } |
524 | 524 | ||
525 | /* list of pinconfig callbacks for pinconfig vertical in the pinctrl code */ | 525 | /* list of pinconfig callbacks for pinconfig vertical in the pinctrl code */ |
526 | static struct pinconf_ops exynos5440_pinconf_ops = { | 526 | static const struct pinconf_ops exynos5440_pinconf_ops = { |
527 | .pin_config_get = exynos5440_pinconf_get, | 527 | .pin_config_get = exynos5440_pinconf_get, |
528 | .pin_config_set = exynos5440_pinconf_set, | 528 | .pin_config_set = exynos5440_pinconf_set, |
529 | .pin_config_group_get = exynos5440_pinconf_group_get, | 529 | .pin_config_group_get = exynos5440_pinconf_group_get, |
diff --git a/drivers/pinctrl/pinctrl-falcon.c b/drivers/pinctrl/pinctrl-falcon.c index af97a1f90007..f9b2a1d4854f 100644 --- a/drivers/pinctrl/pinctrl-falcon.c +++ b/drivers/pinctrl/pinctrl-falcon.c | |||
@@ -353,7 +353,7 @@ static void falcon_pinconf_group_dbg_show(struct pinctrl_dev *pctrldev, | |||
353 | { | 353 | { |
354 | } | 354 | } |
355 | 355 | ||
356 | static struct pinconf_ops falcon_pinconf_ops = { | 356 | static const struct pinconf_ops falcon_pinconf_ops = { |
357 | .pin_config_get = falcon_pinconf_get, | 357 | .pin_config_get = falcon_pinconf_get, |
358 | .pin_config_set = falcon_pinconf_set, | 358 | .pin_config_set = falcon_pinconf_set, |
359 | .pin_config_group_get = falcon_pinconf_group_get, | 359 | .pin_config_group_get = falcon_pinconf_group_get, |
diff --git a/drivers/pinctrl/pinctrl-imx.c b/drivers/pinctrl/pinctrl-imx.c index 4cebb9c6c5c5..0ef190449eab 100644 --- a/drivers/pinctrl/pinctrl-imx.c +++ b/drivers/pinctrl/pinctrl-imx.c | |||
@@ -207,7 +207,7 @@ static void imx_dt_free_map(struct pinctrl_dev *pctldev, | |||
207 | kfree(map); | 207 | kfree(map); |
208 | } | 208 | } |
209 | 209 | ||
210 | static struct pinctrl_ops imx_pctrl_ops = { | 210 | static const struct pinctrl_ops imx_pctrl_ops = { |
211 | .get_groups_count = imx_get_groups_count, | 211 | .get_groups_count = imx_get_groups_count, |
212 | .get_group_name = imx_get_group_name, | 212 | .get_group_name = imx_get_group_name, |
213 | .get_group_pins = imx_get_group_pins, | 213 | .get_group_pins = imx_get_group_pins, |
@@ -299,7 +299,7 @@ static int imx_pmx_get_groups(struct pinctrl_dev *pctldev, unsigned selector, | |||
299 | return 0; | 299 | return 0; |
300 | } | 300 | } |
301 | 301 | ||
302 | static struct pinmux_ops imx_pmx_ops = { | 302 | static const struct pinmux_ops imx_pmx_ops = { |
303 | .get_functions_count = imx_pmx_get_funcs_count, | 303 | .get_functions_count = imx_pmx_get_funcs_count, |
304 | .get_function_name = imx_pmx_get_func_name, | 304 | .get_function_name = imx_pmx_get_func_name, |
305 | .get_function_groups = imx_pmx_get_groups, | 305 | .get_function_groups = imx_pmx_get_groups, |
@@ -397,7 +397,7 @@ static void imx_pinconf_group_dbg_show(struct pinctrl_dev *pctldev, | |||
397 | } | 397 | } |
398 | } | 398 | } |
399 | 399 | ||
400 | static struct pinconf_ops imx_pinconf_ops = { | 400 | static const struct pinconf_ops imx_pinconf_ops = { |
401 | .pin_config_get = imx_pinconf_get, | 401 | .pin_config_get = imx_pinconf_get, |
402 | .pin_config_set = imx_pinconf_set, | 402 | .pin_config_set = imx_pinconf_set, |
403 | .pin_config_dbg_show = imx_pinconf_dbg_show, | 403 | .pin_config_dbg_show = imx_pinconf_dbg_show, |
diff --git a/drivers/pinctrl/pinctrl-lantiq.c b/drivers/pinctrl/pinctrl-lantiq.c index a70384611351..615c5002b757 100644 --- a/drivers/pinctrl/pinctrl-lantiq.c +++ b/drivers/pinctrl/pinctrl-lantiq.c | |||
@@ -169,7 +169,7 @@ static int ltq_pinctrl_dt_node_to_map(struct pinctrl_dev *pctldev, | |||
169 | return 0; | 169 | return 0; |
170 | } | 170 | } |
171 | 171 | ||
172 | static struct pinctrl_ops ltq_pctrl_ops = { | 172 | static const struct pinctrl_ops ltq_pctrl_ops = { |
173 | .get_groups_count = ltq_get_group_count, | 173 | .get_groups_count = ltq_get_group_count, |
174 | .get_group_name = ltq_get_group_name, | 174 | .get_group_name = ltq_get_group_name, |
175 | .get_group_pins = ltq_get_group_pins, | 175 | .get_group_pins = ltq_get_group_pins, |
@@ -311,7 +311,7 @@ static int ltq_pmx_gpio_request_enable(struct pinctrl_dev *pctrldev, | |||
311 | return info->apply_mux(pctrldev, mfp, pin_func); | 311 | return info->apply_mux(pctrldev, mfp, pin_func); |
312 | } | 312 | } |
313 | 313 | ||
314 | static struct pinmux_ops ltq_pmx_ops = { | 314 | static const struct pinmux_ops ltq_pmx_ops = { |
315 | .get_functions_count = ltq_pmx_func_count, | 315 | .get_functions_count = ltq_pmx_func_count, |
316 | .get_function_name = ltq_pmx_func_name, | 316 | .get_function_name = ltq_pmx_func_name, |
317 | .get_function_groups = ltq_pmx_get_groups, | 317 | .get_function_groups = ltq_pmx_get_groups, |
diff --git a/drivers/pinctrl/pinctrl-mxs.c b/drivers/pinctrl/pinctrl-mxs.c index 23af9f1f9c35..b45c4eb35798 100644 --- a/drivers/pinctrl/pinctrl-mxs.c +++ b/drivers/pinctrl/pinctrl-mxs.c | |||
@@ -158,7 +158,7 @@ static void mxs_dt_free_map(struct pinctrl_dev *pctldev, | |||
158 | kfree(map); | 158 | kfree(map); |
159 | } | 159 | } |
160 | 160 | ||
161 | static struct pinctrl_ops mxs_pinctrl_ops = { | 161 | static const struct pinctrl_ops mxs_pinctrl_ops = { |
162 | .get_groups_count = mxs_get_groups_count, | 162 | .get_groups_count = mxs_get_groups_count, |
163 | .get_group_name = mxs_get_group_name, | 163 | .get_group_name = mxs_get_group_name, |
164 | .get_group_pins = mxs_get_group_pins, | 164 | .get_group_pins = mxs_get_group_pins, |
@@ -219,7 +219,7 @@ static int mxs_pinctrl_enable(struct pinctrl_dev *pctldev, unsigned selector, | |||
219 | return 0; | 219 | return 0; |
220 | } | 220 | } |
221 | 221 | ||
222 | static struct pinmux_ops mxs_pinmux_ops = { | 222 | static const struct pinmux_ops mxs_pinmux_ops = { |
223 | .get_functions_count = mxs_pinctrl_get_funcs_count, | 223 | .get_functions_count = mxs_pinctrl_get_funcs_count, |
224 | .get_function_name = mxs_pinctrl_get_func_name, | 224 | .get_function_name = mxs_pinctrl_get_func_name, |
225 | .get_function_groups = mxs_pinctrl_get_func_groups, | 225 | .get_function_groups = mxs_pinctrl_get_func_groups, |
@@ -319,7 +319,7 @@ static void mxs_pinconf_group_dbg_show(struct pinctrl_dev *pctldev, | |||
319 | seq_printf(s, "0x%lx", config); | 319 | seq_printf(s, "0x%lx", config); |
320 | } | 320 | } |
321 | 321 | ||
322 | static struct pinconf_ops mxs_pinconf_ops = { | 322 | static const struct pinconf_ops mxs_pinconf_ops = { |
323 | .pin_config_get = mxs_pinconf_get, | 323 | .pin_config_get = mxs_pinconf_get, |
324 | .pin_config_set = mxs_pinconf_set, | 324 | .pin_config_set = mxs_pinconf_set, |
325 | .pin_config_group_get = mxs_pinconf_group_get, | 325 | .pin_config_group_get = mxs_pinconf_group_get, |
diff --git a/drivers/pinctrl/pinctrl-nomadik.c b/drivers/pinctrl/pinctrl-nomadik.c index 36d20293de5c..2328baaa86bf 100644 --- a/drivers/pinctrl/pinctrl-nomadik.c +++ b/drivers/pinctrl/pinctrl-nomadik.c | |||
@@ -1764,7 +1764,7 @@ int nmk_pinctrl_dt_node_to_map(struct pinctrl_dev *pctldev, | |||
1764 | return 0; | 1764 | return 0; |
1765 | } | 1765 | } |
1766 | 1766 | ||
1767 | static struct pinctrl_ops nmk_pinctrl_ops = { | 1767 | static const struct pinctrl_ops nmk_pinctrl_ops = { |
1768 | .get_groups_count = nmk_get_groups_cnt, | 1768 | .get_groups_count = nmk_get_groups_cnt, |
1769 | .get_group_name = nmk_get_group_name, | 1769 | .get_group_name = nmk_get_group_name, |
1770 | .get_group_pins = nmk_get_group_pins, | 1770 | .get_group_pins = nmk_get_group_pins, |
@@ -1975,7 +1975,7 @@ static void nmk_gpio_disable_free(struct pinctrl_dev *pctldev, | |||
1975 | /* Set the pin to some default state, GPIO is usually default */ | 1975 | /* Set the pin to some default state, GPIO is usually default */ |
1976 | } | 1976 | } |
1977 | 1977 | ||
1978 | static struct pinmux_ops nmk_pinmux_ops = { | 1978 | static const struct pinmux_ops nmk_pinmux_ops = { |
1979 | .get_functions_count = nmk_pmx_get_funcs_cnt, | 1979 | .get_functions_count = nmk_pmx_get_funcs_cnt, |
1980 | .get_function_name = nmk_pmx_get_func_name, | 1980 | .get_function_name = nmk_pmx_get_func_name, |
1981 | .get_function_groups = nmk_pmx_get_func_groups, | 1981 | .get_function_groups = nmk_pmx_get_func_groups, |
@@ -2089,7 +2089,7 @@ static int nmk_pin_config_set(struct pinctrl_dev *pctldev, unsigned pin, | |||
2089 | return 0; | 2089 | return 0; |
2090 | } | 2090 | } |
2091 | 2091 | ||
2092 | static struct pinconf_ops nmk_pinconf_ops = { | 2092 | static const struct pinconf_ops nmk_pinconf_ops = { |
2093 | .pin_config_get = nmk_pin_config_get, | 2093 | .pin_config_get = nmk_pin_config_get, |
2094 | .pin_config_set = nmk_pin_config_set, | 2094 | .pin_config_set = nmk_pin_config_set, |
2095 | }; | 2095 | }; |
diff --git a/drivers/pinctrl/pinctrl-pxa3xx.c b/drivers/pinctrl/pinctrl-pxa3xx.c index 1f49bb02a6af..05e11de1d144 100644 --- a/drivers/pinctrl/pinctrl-pxa3xx.c +++ b/drivers/pinctrl/pinctrl-pxa3xx.c | |||
@@ -53,7 +53,7 @@ static int pxa3xx_get_group_pins(struct pinctrl_dev *pctrldev, | |||
53 | return 0; | 53 | return 0; |
54 | } | 54 | } |
55 | 55 | ||
56 | static struct pinctrl_ops pxa3xx_pctrl_ops = { | 56 | static const struct pinctrl_ops pxa3xx_pctrl_ops = { |
57 | .get_groups_count = pxa3xx_get_groups_count, | 57 | .get_groups_count = pxa3xx_get_groups_count, |
58 | .get_group_name = pxa3xx_get_group_name, | 58 | .get_group_name = pxa3xx_get_group_name, |
59 | .get_group_pins = pxa3xx_get_group_pins, | 59 | .get_group_pins = pxa3xx_get_group_pins, |
@@ -161,7 +161,7 @@ static int pxa3xx_pmx_request_gpio(struct pinctrl_dev *pctrldev, | |||
161 | return 0; | 161 | return 0; |
162 | } | 162 | } |
163 | 163 | ||
164 | static struct pinmux_ops pxa3xx_pmx_ops = { | 164 | static const struct pinmux_ops pxa3xx_pmx_ops = { |
165 | .get_functions_count = pxa3xx_pmx_get_funcs_count, | 165 | .get_functions_count = pxa3xx_pmx_get_funcs_count, |
166 | .get_function_name = pxa3xx_pmx_get_func_name, | 166 | .get_function_name = pxa3xx_pmx_get_func_name, |
167 | .get_function_groups = pxa3xx_pmx_get_groups, | 167 | .get_function_groups = pxa3xx_pmx_get_groups, |
diff --git a/drivers/pinctrl/pinctrl-samsung.c b/drivers/pinctrl/pinctrl-samsung.c index f206df175656..3475b92b24a4 100644 --- a/drivers/pinctrl/pinctrl-samsung.c +++ b/drivers/pinctrl/pinctrl-samsung.c | |||
@@ -214,7 +214,7 @@ static void samsung_dt_free_map(struct pinctrl_dev *pctldev, | |||
214 | } | 214 | } |
215 | 215 | ||
216 | /* list of pinctrl callbacks for the pinctrl core */ | 216 | /* list of pinctrl callbacks for the pinctrl core */ |
217 | static struct pinctrl_ops samsung_pctrl_ops = { | 217 | static const struct pinctrl_ops samsung_pctrl_ops = { |
218 | .get_groups_count = samsung_get_group_count, | 218 | .get_groups_count = samsung_get_group_count, |
219 | .get_group_name = samsung_get_group_name, | 219 | .get_group_name = samsung_get_group_name, |
220 | .get_group_pins = samsung_get_group_pins, | 220 | .get_group_pins = samsung_get_group_pins, |
@@ -357,7 +357,7 @@ static int samsung_pinmux_gpio_set_direction(struct pinctrl_dev *pctldev, | |||
357 | } | 357 | } |
358 | 358 | ||
359 | /* list of pinmux callbacks for the pinmux vertical in pinctrl core */ | 359 | /* list of pinmux callbacks for the pinmux vertical in pinctrl core */ |
360 | static struct pinmux_ops samsung_pinmux_ops = { | 360 | static const struct pinmux_ops samsung_pinmux_ops = { |
361 | .get_functions_count = samsung_get_functions_count, | 361 | .get_functions_count = samsung_get_functions_count, |
362 | .get_function_name = samsung_pinmux_get_fname, | 362 | .get_function_name = samsung_pinmux_get_fname, |
363 | .get_function_groups = samsung_pinmux_get_groups, | 363 | .get_function_groups = samsung_pinmux_get_groups, |
@@ -468,7 +468,7 @@ static int samsung_pinconf_group_get(struct pinctrl_dev *pctldev, | |||
468 | } | 468 | } |
469 | 469 | ||
470 | /* list of pinconfig callbacks for pinconfig vertical in the pinctrl code */ | 470 | /* list of pinconfig callbacks for pinconfig vertical in the pinctrl code */ |
471 | static struct pinconf_ops samsung_pinconf_ops = { | 471 | static const struct pinconf_ops samsung_pinconf_ops = { |
472 | .pin_config_get = samsung_pinconf_get, | 472 | .pin_config_get = samsung_pinconf_get, |
473 | .pin_config_set = samsung_pinconf_set, | 473 | .pin_config_set = samsung_pinconf_set, |
474 | .pin_config_group_get = samsung_pinconf_group_get, | 474 | .pin_config_group_get = samsung_pinconf_group_get, |
diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c index 5c32e880bcb2..0c0e2da9d880 100644 --- a/drivers/pinctrl/pinctrl-single.c +++ b/drivers/pinctrl/pinctrl-single.c | |||
@@ -270,7 +270,7 @@ static int pcs_dt_node_to_map(struct pinctrl_dev *pctldev, | |||
270 | struct device_node *np_config, | 270 | struct device_node *np_config, |
271 | struct pinctrl_map **map, unsigned *num_maps); | 271 | struct pinctrl_map **map, unsigned *num_maps); |
272 | 272 | ||
273 | static struct pinctrl_ops pcs_pinctrl_ops = { | 273 | static const struct pinctrl_ops pcs_pinctrl_ops = { |
274 | .get_groups_count = pcs_get_groups_count, | 274 | .get_groups_count = pcs_get_groups_count, |
275 | .get_group_name = pcs_get_group_name, | 275 | .get_group_name = pcs_get_group_name, |
276 | .get_group_pins = pcs_get_group_pins, | 276 | .get_group_pins = pcs_get_group_pins, |
@@ -408,7 +408,7 @@ static int pcs_request_gpio(struct pinctrl_dev *pctldev, | |||
408 | return -ENOTSUPP; | 408 | return -ENOTSUPP; |
409 | } | 409 | } |
410 | 410 | ||
411 | static struct pinmux_ops pcs_pinmux_ops = { | 411 | static const struct pinmux_ops pcs_pinmux_ops = { |
412 | .get_functions_count = pcs_get_functions_count, | 412 | .get_functions_count = pcs_get_functions_count, |
413 | .get_function_name = pcs_get_function_name, | 413 | .get_function_name = pcs_get_function_name, |
414 | .get_function_groups = pcs_get_function_groups, | 414 | .get_function_groups = pcs_get_function_groups, |
@@ -451,7 +451,7 @@ static void pcs_pinconf_group_dbg_show(struct pinctrl_dev *pctldev, | |||
451 | { | 451 | { |
452 | } | 452 | } |
453 | 453 | ||
454 | static struct pinconf_ops pcs_pinconf_ops = { | 454 | static const struct pinconf_ops pcs_pinconf_ops = { |
455 | .pin_config_get = pcs_pinconf_get, | 455 | .pin_config_get = pcs_pinconf_get, |
456 | .pin_config_set = pcs_pinconf_set, | 456 | .pin_config_set = pcs_pinconf_set, |
457 | .pin_config_group_get = pcs_pinconf_group_get, | 457 | .pin_config_group_get = pcs_pinconf_group_get, |
diff --git a/drivers/pinctrl/pinctrl-sirf.c b/drivers/pinctrl/pinctrl-sirf.c index d02498b30c6e..0990a721758e 100644 --- a/drivers/pinctrl/pinctrl-sirf.c +++ b/drivers/pinctrl/pinctrl-sirf.c | |||
@@ -979,7 +979,7 @@ static void sirfsoc_dt_free_map(struct pinctrl_dev *pctldev, | |||
979 | kfree(map); | 979 | kfree(map); |
980 | } | 980 | } |
981 | 981 | ||
982 | static struct pinctrl_ops sirfsoc_pctrl_ops = { | 982 | static const struct pinctrl_ops sirfsoc_pctrl_ops = { |
983 | .get_groups_count = sirfsoc_get_groups_count, | 983 | .get_groups_count = sirfsoc_get_groups_count, |
984 | .get_group_name = sirfsoc_get_group_name, | 984 | .get_group_name = sirfsoc_get_group_name, |
985 | .get_group_pins = sirfsoc_get_group_pins, | 985 | .get_group_pins = sirfsoc_get_group_pins, |
@@ -1181,7 +1181,7 @@ static int sirfsoc_pinmux_request_gpio(struct pinctrl_dev *pmxdev, | |||
1181 | return 0; | 1181 | return 0; |
1182 | } | 1182 | } |
1183 | 1183 | ||
1184 | static struct pinmux_ops sirfsoc_pinmux_ops = { | 1184 | static const struct pinmux_ops sirfsoc_pinmux_ops = { |
1185 | .enable = sirfsoc_pinmux_enable, | 1185 | .enable = sirfsoc_pinmux_enable, |
1186 | .disable = sirfsoc_pinmux_disable, | 1186 | .disable = sirfsoc_pinmux_disable, |
1187 | .get_functions_count = sirfsoc_pinmux_get_funcs_count, | 1187 | .get_functions_count = sirfsoc_pinmux_get_funcs_count, |
diff --git a/drivers/pinctrl/pinctrl-sunxi.c b/drivers/pinctrl/pinctrl-sunxi.c index 80b11e3415bc..46b8f2d4f0a5 100644 --- a/drivers/pinctrl/pinctrl-sunxi.c +++ b/drivers/pinctrl/pinctrl-sunxi.c | |||
@@ -1029,7 +1029,7 @@ static void sunxi_pctrl_dt_free_map(struct pinctrl_dev *pctldev, | |||
1029 | kfree(map); | 1029 | kfree(map); |
1030 | } | 1030 | } |
1031 | 1031 | ||
1032 | static struct pinctrl_ops sunxi_pctrl_ops = { | 1032 | static const struct pinctrl_ops sunxi_pctrl_ops = { |
1033 | .dt_node_to_map = sunxi_pctrl_dt_node_to_map, | 1033 | .dt_node_to_map = sunxi_pctrl_dt_node_to_map, |
1034 | .dt_free_map = sunxi_pctrl_dt_free_map, | 1034 | .dt_free_map = sunxi_pctrl_dt_free_map, |
1035 | .get_groups_count = sunxi_pctrl_get_groups_count, | 1035 | .get_groups_count = sunxi_pctrl_get_groups_count, |
@@ -1098,7 +1098,7 @@ static int sunxi_pconf_group_set(struct pinctrl_dev *pctldev, | |||
1098 | return 0; | 1098 | return 0; |
1099 | } | 1099 | } |
1100 | 1100 | ||
1101 | static struct pinconf_ops sunxi_pconf_ops = { | 1101 | static const struct pinconf_ops sunxi_pconf_ops = { |
1102 | .pin_config_group_get = sunxi_pconf_group_get, | 1102 | .pin_config_group_get = sunxi_pconf_group_get, |
1103 | .pin_config_group_set = sunxi_pconf_group_set, | 1103 | .pin_config_group_set = sunxi_pconf_group_set, |
1104 | }; | 1104 | }; |
@@ -1204,7 +1204,7 @@ error: | |||
1204 | return ret; | 1204 | return ret; |
1205 | } | 1205 | } |
1206 | 1206 | ||
1207 | static struct pinmux_ops sunxi_pmx_ops = { | 1207 | static const struct pinmux_ops sunxi_pmx_ops = { |
1208 | .get_functions_count = sunxi_pmx_get_funcs_cnt, | 1208 | .get_functions_count = sunxi_pmx_get_funcs_cnt, |
1209 | .get_function_name = sunxi_pmx_get_func_name, | 1209 | .get_function_name = sunxi_pmx_get_func_name, |
1210 | .get_function_groups = sunxi_pmx_get_func_groups, | 1210 | .get_function_groups = sunxi_pmx_get_func_groups, |
diff --git a/drivers/pinctrl/pinctrl-tegra.c b/drivers/pinctrl/pinctrl-tegra.c index f195d77a3572..2fa9bc6cd7ab 100644 --- a/drivers/pinctrl/pinctrl-tegra.c +++ b/drivers/pinctrl/pinctrl-tegra.c | |||
@@ -316,7 +316,7 @@ static int tegra_pinctrl_dt_node_to_map(struct pinctrl_dev *pctldev, | |||
316 | return 0; | 316 | return 0; |
317 | } | 317 | } |
318 | 318 | ||
319 | static struct pinctrl_ops tegra_pinctrl_ops = { | 319 | static const struct pinctrl_ops tegra_pinctrl_ops = { |
320 | .get_groups_count = tegra_pinctrl_get_groups_count, | 320 | .get_groups_count = tegra_pinctrl_get_groups_count, |
321 | .get_group_name = tegra_pinctrl_get_group_name, | 321 | .get_group_name = tegra_pinctrl_get_group_name, |
322 | .get_group_pins = tegra_pinctrl_get_group_pins, | 322 | .get_group_pins = tegra_pinctrl_get_group_pins, |
@@ -401,7 +401,7 @@ static void tegra_pinctrl_disable(struct pinctrl_dev *pctldev, | |||
401 | pmx_writel(pmx, val, g->mux_bank, g->mux_reg); | 401 | pmx_writel(pmx, val, g->mux_bank, g->mux_reg); |
402 | } | 402 | } |
403 | 403 | ||
404 | static struct pinmux_ops tegra_pinmux_ops = { | 404 | static const struct pinmux_ops tegra_pinmux_ops = { |
405 | .get_functions_count = tegra_pinctrl_get_funcs_count, | 405 | .get_functions_count = tegra_pinctrl_get_funcs_count, |
406 | .get_function_name = tegra_pinctrl_get_func_name, | 406 | .get_function_name = tegra_pinctrl_get_func_name, |
407 | .get_function_groups = tegra_pinctrl_get_func_groups, | 407 | .get_function_groups = tegra_pinctrl_get_func_groups, |
@@ -676,7 +676,7 @@ static void tegra_pinconf_config_dbg_show(struct pinctrl_dev *pctldev, | |||
676 | } | 676 | } |
677 | #endif | 677 | #endif |
678 | 678 | ||
679 | static struct pinconf_ops tegra_pinconf_ops = { | 679 | static const struct pinconf_ops tegra_pinconf_ops = { |
680 | .pin_config_get = tegra_pinconf_get, | 680 | .pin_config_get = tegra_pinconf_get, |
681 | .pin_config_set = tegra_pinconf_set, | 681 | .pin_config_set = tegra_pinconf_set, |
682 | .pin_config_group_get = tegra_pinconf_group_get, | 682 | .pin_config_group_get = tegra_pinconf_group_get, |
diff --git a/drivers/pinctrl/pinctrl-u300.c b/drivers/pinctrl/pinctrl-u300.c index 2b5772550836..6a3a7503e6a0 100644 --- a/drivers/pinctrl/pinctrl-u300.c +++ b/drivers/pinctrl/pinctrl-u300.c | |||
@@ -860,7 +860,7 @@ static void u300_pin_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s, | |||
860 | seq_printf(s, " " DRIVER_NAME); | 860 | seq_printf(s, " " DRIVER_NAME); |
861 | } | 861 | } |
862 | 862 | ||
863 | static struct pinctrl_ops u300_pctrl_ops = { | 863 | static const struct pinctrl_ops u300_pctrl_ops = { |
864 | .get_groups_count = u300_get_groups_count, | 864 | .get_groups_count = u300_get_groups_count, |
865 | .get_group_name = u300_get_group_name, | 865 | .get_group_name = u300_get_group_name, |
866 | .get_group_pins = u300_get_group_pins, | 866 | .get_group_pins = u300_get_group_pins, |
@@ -1003,7 +1003,7 @@ static int u300_pmx_get_groups(struct pinctrl_dev *pctldev, unsigned selector, | |||
1003 | return 0; | 1003 | return 0; |
1004 | } | 1004 | } |
1005 | 1005 | ||
1006 | static struct pinmux_ops u300_pmx_ops = { | 1006 | static const struct pinmux_ops u300_pmx_ops = { |
1007 | .get_functions_count = u300_pmx_get_funcs_count, | 1007 | .get_functions_count = u300_pmx_get_funcs_count, |
1008 | .get_function_name = u300_pmx_get_func_name, | 1008 | .get_function_name = u300_pmx_get_func_name, |
1009 | .get_function_groups = u300_pmx_get_groups, | 1009 | .get_function_groups = u300_pmx_get_groups, |
@@ -1046,7 +1046,7 @@ static int u300_pin_config_set(struct pinctrl_dev *pctldev, unsigned pin, | |||
1046 | return 0; | 1046 | return 0; |
1047 | } | 1047 | } |
1048 | 1048 | ||
1049 | static struct pinconf_ops u300_pconf_ops = { | 1049 | static const struct pinconf_ops u300_pconf_ops = { |
1050 | .is_generic = true, | 1050 | .is_generic = true, |
1051 | .pin_config_get = u300_pin_config_get, | 1051 | .pin_config_get = u300_pin_config_get, |
1052 | .pin_config_set = u300_pin_config_set, | 1052 | .pin_config_set = u300_pin_config_set, |
diff --git a/drivers/pinctrl/pinctrl-xway.c b/drivers/pinctrl/pinctrl-xway.c index 068224efa6fa..f2977cff8366 100644 --- a/drivers/pinctrl/pinctrl-xway.c +++ b/drivers/pinctrl/pinctrl-xway.c | |||
@@ -553,7 +553,7 @@ int xway_pinconf_group_set(struct pinctrl_dev *pctldev, | |||
553 | return ret; | 553 | return ret; |
554 | } | 554 | } |
555 | 555 | ||
556 | static struct pinconf_ops xway_pinconf_ops = { | 556 | static const struct pinconf_ops xway_pinconf_ops = { |
557 | .pin_config_get = xway_pinconf_get, | 557 | .pin_config_get = xway_pinconf_get, |
558 | .pin_config_set = xway_pinconf_set, | 558 | .pin_config_set = xway_pinconf_set, |
559 | .pin_config_group_set = xway_pinconf_group_set, | 559 | .pin_config_group_set = xway_pinconf_group_set, |
diff --git a/drivers/pinctrl/spear/pinctrl-spear.c b/drivers/pinctrl/spear/pinctrl-spear.c index 6a7dae70db08..116da0412c4b 100644 --- a/drivers/pinctrl/spear/pinctrl-spear.c +++ b/drivers/pinctrl/spear/pinctrl-spear.c | |||
@@ -198,7 +198,7 @@ static void spear_pinctrl_dt_free_map(struct pinctrl_dev *pctldev, | |||
198 | kfree(map); | 198 | kfree(map); |
199 | } | 199 | } |
200 | 200 | ||
201 | static struct pinctrl_ops spear_pinctrl_ops = { | 201 | static const struct pinctrl_ops spear_pinctrl_ops = { |
202 | .get_groups_count = spear_pinctrl_get_groups_cnt, | 202 | .get_groups_count = spear_pinctrl_get_groups_cnt, |
203 | .get_group_name = spear_pinctrl_get_group_name, | 203 | .get_group_name = spear_pinctrl_get_group_name, |
204 | .get_group_pins = spear_pinctrl_get_group_pins, | 204 | .get_group_pins = spear_pinctrl_get_group_pins, |
@@ -340,7 +340,7 @@ static void gpio_disable_free(struct pinctrl_dev *pctldev, | |||
340 | gpio_request_endisable(pctldev, range, offset, false); | 340 | gpio_request_endisable(pctldev, range, offset, false); |
341 | } | 341 | } |
342 | 342 | ||
343 | static struct pinmux_ops spear_pinmux_ops = { | 343 | static const struct pinmux_ops spear_pinmux_ops = { |
344 | .get_functions_count = spear_pinctrl_get_funcs_count, | 344 | .get_functions_count = spear_pinctrl_get_funcs_count, |
345 | .get_function_name = spear_pinctrl_get_func_name, | 345 | .get_function_name = spear_pinctrl_get_func_name, |
346 | .get_function_groups = spear_pinctrl_get_func_groups, | 346 | .get_function_groups = spear_pinctrl_get_func_groups, |
diff --git a/include/linux/pinctrl/pinctrl.h b/include/linux/pinctrl/pinctrl.h index 778804df293f..2c2a9e8d8578 100644 --- a/include/linux/pinctrl/pinctrl.h +++ b/include/linux/pinctrl/pinctrl.h | |||
@@ -118,9 +118,9 @@ struct pinctrl_desc { | |||
118 | const char *name; | 118 | const char *name; |
119 | struct pinctrl_pin_desc const *pins; | 119 | struct pinctrl_pin_desc const *pins; |
120 | unsigned int npins; | 120 | unsigned int npins; |
121 | struct pinctrl_ops *pctlops; | 121 | const struct pinctrl_ops *pctlops; |
122 | struct pinmux_ops *pmxops; | 122 | const struct pinmux_ops *pmxops; |
123 | struct pinconf_ops *confops; | 123 | const struct pinconf_ops *confops; |
124 | struct module *owner; | 124 | struct module *owner; |
125 | }; | 125 | }; |
126 | 126 | ||