diff options
author | Stephen Warren <swarren@nvidia.com> | 2011-10-19 22:19:25 (GMT) |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2011-10-20 09:41:49 (GMT) |
commit | a5818a8bd095a08cfb1871b63af9c8bed103e4b9 (patch) | |
tree | 7fc2ade1186cc42877f21a0eead3843515b914be /drivers/pinctrl/core.c | |
parent | 393daa814f4bbc6f5c099178c073fae9f7ef6177 (diff) | |
download | linux-a5818a8bd095a08cfb1871b63af9c8bed103e4b9.tar.xz |
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 'drivers/pinctrl/core.c')
-rw-r--r-- | drivers/pinctrl/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index b2eaf8d..ceb6327 100644 --- a/drivers/pinctrl/core.c +++ b/drivers/pinctrl/core.c @@ -329,7 +329,7 @@ static int pinctrl_groups_show(struct seq_file *s, void *what) seq_puts(s, "registered pin groups:\n"); while (ops->list_groups(pctldev, selector) >= 0) { - unsigned *pins; + const unsigned *pins; unsigned num_pins; const char *gname = ops->get_group_name(pctldev, selector); int ret; |