]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pinctrl: get_group_pins() const fixes
authorStephen Warren <swarren@nvidia.com>
Wed, 19 Oct 2011 22:19:25 +0000 (16:19 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 28 Oct 2011 19:41:17 +0000 (21:41 +0200)
commitcbd3cc35693d97e13a224ed77d2435232960bebf
treedee8fa1d6e694f24945c7d20f63302ffb9ee332b
parent6cdf4abb72bca5896da3ded27c1c3811780591b2
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