Skip to content

Commit 63f3fb8

Browse files
diandersLinus Walleij
authored andcommitted
pinctrl: Document pin_config_group_get() return codes like pin_config_get()
The pinconf_generic_dump_one() function makes the assumption that pin_config_group_get() should return -EINVAL and -ENOTSUPP just like pin_config_get() does. Document that so it's more obvious. Signed-off-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 23ee0f1 commit 63f3fb8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎include/linux/pinctrl/pinconf.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ struct seq_file;
2828
* is not available on this controller this should return -ENOTSUPP
2929
* and if it is available but disabled it should return -EINVAL
3030
* @pin_config_set: configure an individual pin
31-
* @pin_config_group_get: get configurations for an entire pin group
31+
* @pin_config_group_get: get configurations for an entire pin group; should
32+
* return -ENOTSUPP and -EINVAL using the same rules as pin_config_get.
3233
* @pin_config_group_set: configure all pins in a group
3334
* @pin_config_dbg_parse_modify: optional debugfs to modify a pin configuration
3435
* @pin_config_dbg_show: optional debugfs display hook that will provide

0 commit comments

Comments
 (0)