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-sirf.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-sirf.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-sirf.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, |