Commit 1fec2a03 authored by Baruch Siach's avatar Baruch Siach Committed by Ben Hutchings

pinctrl: fix example .get_group_pins implementation signature

commit 838d030b upstream.

The callback function signature has changed in commit a5818a8b (pinctrl:
get_group_pins() const fixes)

Fixes: a5818a8b ('pinctrl: get_group_pins() const fixes')
Cc: Stephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarBaruch Siach <baruch@tkos.co.il>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 98a1fb97
...@@ -164,8 +164,8 @@ static const char *foo_get_group_name(struct pinctrl_dev *pctldev, ...@@ -164,8 +164,8 @@ static const char *foo_get_group_name(struct pinctrl_dev *pctldev,
} }
static int foo_get_group_pins(struct pinctrl_dev *pctldev, unsigned selector, static int foo_get_group_pins(struct pinctrl_dev *pctldev, unsigned selector,
unsigned ** const pins, const unsigned **pins,
unsigned * const num_pins) unsigned *num_pins)
{ {
*pins = (unsigned *) foo_groups[selector].pins; *pins = (unsigned *) foo_groups[selector].pins;
*num_pins = foo_groups[selector].num_pins; *num_pins = foo_groups[selector].num_pins;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment