Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+10
+10
include/linux/pinctrl/pinmux.h
··· 35 35 * name can be used with the generic @pinctrl_ops to retrieve the 36 36 * actual pins affected. The applicable groups will be returned in 37 37 * @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. 38 48 * @set_mux: enable a certain muxing function with a certain pin group. The 39 49 * driver does not need to figure out whether enabling this function 40 50 * conflicts some other use of the pins in that group, such collisions