pinctrl: get_group_pins() const fixes
commita5818a8bd095a08cfb1871b63af9c8bed103e4b9
authorStephen Warren <swarren@nvidia.com>
Wed, 19 Oct 2011 22:19:25 +0000 (19 16:19 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 20 Oct 2011 09:41:49 +0000 (20 11:41 +0200)
tree7fc2ade1186cc42877f21a0eead3843515b914be
parent393daa814f4bbc6f5c099178c073fae9f7ef6177
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>
drivers/pinctrl/core.c
drivers/pinctrl/pinmux-sirf.c
drivers/pinctrl/pinmux-u300.c
drivers/pinctrl/pinmux.c
include/linux/pinctrl/pinctrl.h