diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-02-16 09:25:07 (GMT) |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-03-07 04:27:29 (GMT) |
commit | 022ab148d28e8466e45d28552224e3029f1cccd8 (patch) | |
tree | 8af19f47261c907bb944c0403ba78a493f4d4906 /drivers/pinctrl/pinctrl-xway.c | |
parent | a72149e82b65b76d2dae5428a6b211eb43933529 (diff) | |
download | linux-022ab148d28e8466e45d28552224e3029f1cccd8.tar.xz |
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-xway.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-xway.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-xway.c b/drivers/pinctrl/pinctrl-xway.c index 068224e..f2977cf 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, return ret; } -static struct pinconf_ops xway_pinconf_ops = { +static const struct pinconf_ops xway_pinconf_ops = { .pin_config_get = xway_pinconf_get, .pin_config_set = xway_pinconf_set, .pin_config_group_set = xway_pinconf_group_set, |