aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-at91.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-02-16 04:25:07 -0500
committerLinus Walleij <linus.walleij@linaro.org>2013-03-06 23:27:29 -0500
commit022ab148d28e8466e45d28552224e3029f1cccd8 (patch)
tree8af19f47261c907bb944c0403ba78a493f4d4906 /drivers/pinctrl/pinctrl-at91.c
parenta72149e82b65b76d2dae5428a6b211eb43933529 (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-at91.c')
-rw-r--r--drivers/pinctrl/pinctrl-at91.c6
1 files changed, 3 insertions, 3 deletions
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
297static struct pinctrl_ops at91_pctrl_ops = { 297static 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
699static struct pinmux_ops at91_pmx_ops = { 699static 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
779static struct pinconf_ops at91_pinconf_ops = { 779static 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,