mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Signed-off-by: Dong Aisheng <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
5d589b092a
commit
3e5e00b654
2 changed files with 14 additions and 0 deletions
|
|
@ -332,6 +332,17 @@ void pinctrl_add_gpio_range(struct pinctrl_dev *pctldev,
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(pinctrl_add_gpio_range);
|
||||
|
||||
void pinctrl_add_gpio_ranges(struct pinctrl_dev *pctldev,
|
||||
struct pinctrl_gpio_range *ranges,
|
||||
unsigned nranges)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < nranges; i++)
|
||||
pinctrl_add_gpio_range(pctldev, &ranges[i]);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(pinctrl_add_gpio_ranges);
|
||||
|
||||
/**
|
||||
* pinctrl_get_group_selector() - returns the group selector for a group
|
||||
* @pctldev: the pin controller handling the group
|
||||
|
|
|
|||
Loading…
Reference in a new issue