aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/pinctrl.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/Documentation/pinctrl.txt b/Documentation/pinctrl.txt
index c0ffd30eb55e..a7929cb47e7c 100644
--- a/Documentation/pinctrl.txt
+++ b/Documentation/pinctrl.txt
@@ -358,7 +358,12 @@ static struct pinctrl_gpio_range gpio_range = {
358 .gc = &chip; 358 .gc = &chip;
359}; 359};
360 360
361In this case the pin_base property will be ignored. 361In this case the pin_base property will be ignored. If the name of a pin
362group is known, the pins and npins elements of the above structure can be
363initialised using the function pinctrl_get_group_pins(), e.g. for pin
364group "foo":
365
366pinctrl_get_group_pins(pctl, "foo", &gpio_range.pins, &gpio_range.npins);
362 367
363When GPIO-specific functions in the pin control subsystem are called, these 368When GPIO-specific functions in the pin control subsystem are called, these
364ranges will be used to look up the appropriate pin controller by inspecting 369ranges will be used to look up the appropriate pin controller by inspecting