diff options
| author | Linus Walleij <linus.walleij@linaro.org> | 2025-10-22 16:23:42 +0300 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2025-10-23 15:14:31 +0300 |
| commit | 7958b4bb806c1af800ca23c8333a98231b3ab0b1 (patch) | |
| tree | fa4845c72b2ccd91ac6cbc0f01b3c91cbbeb3971 /include/linux | |
| parent | a419bc0f13f3d13c3947d99accf6df9c690d4f25 (diff) | |
| download | linux-7958b4bb806c1af800ca23c8333a98231b3ab0b1.tar.xz | |
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>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/pinctrl/pinmux.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/pinctrl/pinmux.h b/include/linux/pinctrl/pinmux.h index 6db6c3e1ccc2..094bbe2fd6fd 100644 --- a/include/linux/pinctrl/pinmux.h +++ b/include/linux/pinctrl/pinmux.h @@ -35,6 +35,16 @@ struct pinctrl_gpio_range; * name can be used with the generic @pinctrl_ops to retrieve the * actual pins affected. The applicable groups will be returned in * @groups and the number of groups in @num_groups + * @function_is_gpio: determine if the indicated function selector passed + * corresponds to the GPIO function which is used by the accelerated GPIO + * functions @gpio_request_enable, @gpio_disable_free and + * @gpio_set_direction. When the pin control core can properly determine + * if a function is a GPIO function, it is easier to use the @strict mode + * on the pin controller. Since a single function is passed, this is + * only useful on pin controllers that use a specific function for GPIO, + * and that usually presupposes that a one-group-per-pin approach is + * used, so that a single function can be set on a single pin to turn + * it to GPIO mode. * @set_mux: enable a certain muxing function with a certain pin group. The * driver does not need to figure out whether enabling this function * conflicts some other use of the pins in that group, such collisions |
