summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinmux-sirf.c
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2011-10-19 16:19:25 -0600
committerLinus Walleij <linus.walleij@linaro.org>2011-10-20 11:41:49 +0200
commita5818a8bd095a08cfb1871b63af9c8bed103e4b9 (patch)
tree7fc2ade1186cc42877f21a0eead3843515b914be /drivers/pinctrl/pinmux-sirf.c
parent393daa814f4bbc6f5c099178c073fae9f7ef6177 (diff)
downloadlinux-a5818a8bd095a08cfb1871b63af9c8bed103e4b9.tar.bz2
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/pinmux-sirf.c')
-rw-r--r--drivers/pinctrl/pinmux-sirf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pinctrl/pinmux-sirf.c b/drivers/pinctrl/pinmux-sirf.c
index c48c5634201e..ddcea1820935 100644
--- a/drivers/pinctrl/pinmux-sirf.c
+++ b/drivers/pinctrl/pinmux-sirf.c
@@ -869,12 +869,12 @@ static const char *sirfsoc_get_group_name(struct pinctrl_dev *pctldev,
}
static int sirfsoc_get_group_pins(struct pinctrl_dev *pctldev, unsigned selector,
- unsigned ** const pins,
- unsigned * const num_pins)
+ const unsigned **pins,
+ const unsigned *num_pins)
{
if (selector >= ARRAY_SIZE(sirfsoc_pin_groups))
return -EINVAL;
- *pins = (unsigned *) sirfsoc_pin_groups[selector].pins;
+ *pins = sirfsoc_pin_groups[selector].pins;
*num_pins = sirfsoc_pin_groups[selector].num_pins;
return 0;
}