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 /drivers/pinctrl/pinctrl-abx500.c | |
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>
Diffstat (limited to 'drivers/pinctrl/pinctrl-abx500.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-abx500.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 | }; |