diff options
author | Stephen Warren <swarren@nvidia.com> | 2011-10-19 18:19:25 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2011-10-20 05:41:49 -0400 |
commit | a5818a8bd095a08cfb1871b63af9c8bed103e4b9 (patch) | |
tree | 7fc2ade1186cc42877f21a0eead3843515b914be /include/linux/pinctrl | |
parent | 393daa814f4bbc6f5c099178c073fae9f7ef6177 (diff) |
pinctrl: get_group_pins() const fixes
get_group_pins() "returns" a pointer to an array of const objects, through
a pointer parameter. Fix the prototype so what's pointed at by the returned
pointer is const, rather than the function parameter being const.
This also allows the removal of a cast in each of the two current pinmux
drivers.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/pinctrl')
-rw-r--r-- | include/linux/pinctrl/pinctrl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/pinctrl/pinctrl.h b/include/linux/pinctrl/pinctrl.h index 4f8d2089acce..3605e947fa90 100644 --- a/include/linux/pinctrl/pinctrl.h +++ b/include/linux/pinctrl/pinctrl.h | |||
@@ -75,8 +75,8 @@ struct pinctrl_ops { | |||
75 | unsigned selector); | 75 | unsigned selector); |
76 | int (*get_group_pins) (struct pinctrl_dev *pctldev, | 76 | int (*get_group_pins) (struct pinctrl_dev *pctldev, |
77 | unsigned selector, | 77 | unsigned selector, |
78 | unsigned ** const pins, | 78 | const unsigned **pins, |
79 | unsigned * const num_pins); | 79 | unsigned *num_pins); |
80 | void (*pin_dbg_show) (struct pinctrl_dev *pctldev, struct seq_file *s, | 80 | void (*pin_dbg_show) (struct pinctrl_dev *pctldev, struct seq_file *s, |
81 | unsigned offset); | 81 | unsigned offset); |
82 | }; | 82 | }; |