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 /include | |
| 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 'include')
| -rw-r--r-- | include/linux/pinctrl/pinctrl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/pinctrl/pinctrl.h b/include/linux/pinctrl/pinctrl.h index 778804df293f..2c2a9e8d8578 100644 --- a/include/linux/pinctrl/pinctrl.h +++ b/include/linux/pinctrl/pinctrl.h | |||
| @@ -118,9 +118,9 @@ struct pinctrl_desc { | |||
| 118 | const char *name; | 118 | const char *name; |
| 119 | struct pinctrl_pin_desc const *pins; | 119 | struct pinctrl_pin_desc const *pins; |
| 120 | unsigned int npins; | 120 | unsigned int npins; |
| 121 | struct pinctrl_ops *pctlops; | 121 | const struct pinctrl_ops *pctlops; |
| 122 | struct pinmux_ops *pmxops; | 122 | const struct pinmux_ops *pmxops; |
| 123 | struct pinconf_ops *confops; | 123 | const struct pinconf_ops *confops; |
| 124 | struct module *owner; | 124 | struct module *owner; |
| 125 | }; | 125 | }; |
| 126 | 126 | ||
