aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-sunxi.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-sunxi.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-sunxi.c')
-rw-r--r--drivers/pinctrl/pinctrl-sunxi.c6
1 files changed, 3 insertions, 3 deletions
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
1032static struct pinctrl_ops sunxi_pctrl_ops = { 1032static 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
1101static struct pinconf_ops sunxi_pconf_ops = { 1101static 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
1207static struct pinmux_ops sunxi_pmx_ops = { 1207static 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,