summaryrefslogtreecommitdiffstats
path: root/include/linux/pinctrl
diff options
context:
space:
mode:
authorDong Aisheng <dong.aisheng@linaro.org>2012-05-23 21:22:41 +0800
committerLinus Walleij <linus.walleij@linaro.org>2012-07-03 21:51:08 +0200
commit3e5e00b654997aa2c3998d30f7213b9611eb23d7 (patch)
treefc086243b83c88df75604165633fa62212921677 /include/linux/pinctrl
parent5d589b092ab212bbcc27828167e1c036e7fc77d2 (diff)
downloadop-kernel-dev-3e5e00b654997aa2c3998d30f7213b9611eb23d7.zip
op-kernel-dev-3e5e00b654997aa2c3998d30f7213b9611eb23d7.tar.gz
pinctrl: add pinctrl_add_gpio_ranges function
Often GPIO ranges are added in batch, so create a special function for that. Acked-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Dong Aisheng <dong.aisheng@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/pinctrl')
-rw-r--r--include/linux/pinctrl/pinctrl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/pinctrl/pinctrl.h b/include/linux/pinctrl/pinctrl.h
index 170a588..69393a6 100644
--- a/include/linux/pinctrl/pinctrl.h
+++ b/include/linux/pinctrl/pinctrl.h
@@ -131,6 +131,9 @@ extern void pinctrl_unregister(struct pinctrl_dev *pctldev);
extern bool pin_is_valid(struct pinctrl_dev *pctldev, int pin);
extern void pinctrl_add_gpio_range(struct pinctrl_dev *pctldev,
struct pinctrl_gpio_range *range);
+extern void pinctrl_add_gpio_ranges(struct pinctrl_dev *pctldev,
+ struct pinctrl_gpio_range *ranges,
+ unsigned nranges);
extern const char *pinctrl_dev_get_name(struct pinctrl_dev *pctldev);
extern void *pinctrl_dev_get_drvdata(struct pinctrl_dev *pctldev);
#else
OpenPOWER on IntegriCloud