Skip to content

Commit 7958b4b

Browse files
author
Linus Walleij
committed
pinctrl: pinmux: Add missing .function_is_gpio kerneldoc
This callback was undocumented, add the docs. Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent a419bc0 commit 7958b4b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

include/linux/pinctrl/pinmux.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ struct pinctrl_gpio_range;
3535
* name can be used with the generic @pinctrl_ops to retrieve the
3636
* actual pins affected. The applicable groups will be returned in
3737
* @groups and the number of groups in @num_groups
38+
* @function_is_gpio: determine if the indicated function selector passed
39+
* corresponds to the GPIO function which is used by the accelerated GPIO
40+
* functions @gpio_request_enable, @gpio_disable_free and
41+
* @gpio_set_direction. When the pin control core can properly determine
42+
* if a function is a GPIO function, it is easier to use the @strict mode
43+
* on the pin controller. Since a single function is passed, this is
44+
* only useful on pin controllers that use a specific function for GPIO,
45+
* and that usually presupposes that a one-group-per-pin approach is
46+
* used, so that a single function can be set on a single pin to turn
47+
* it to GPIO mode.
3848
* @set_mux: enable a certain muxing function with a certain pin group. The
3949
* driver does not need to figure out whether enabling this function
4050
* conflicts some other use of the pins in that group, such collisions

0 commit comments

Comments
 (0)