Skip to content

Commit e48fe75

Browse files
warthog618Bartosz Golaszewski
authored andcommitted
Documentation: gpio: Reconfiguration with unset direction (uAPI v1)
Update description of reconfiguration rules, adding requirement that a direction flag be set or the configuration is considered invalid. Signed-off-by: Kent Gibson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 3550b5d commit e48fe75

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Documentation/userspace-api/gpio/gpio-handle-set-config-ioctl.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ The configuration applies to all requested lines.
4343

4444
The same :ref:`gpio-get-linehandle-config-rules` and
4545
:ref:`gpio-get-linehandle-config-support` that apply when requesting the
46-
lines also apply when updating the line configuration.
46+
lines also apply when updating the line configuration, with the additional
47+
restriction that a direction flag must be set. Requesting an invalid
48+
configuration, including without a direction flag set, is an error
49+
(**EINVAL**).
4750

4851
The motivating use case for this command is changing direction of
4952
bi-directional lines between input and output, but it may be used more

0 commit comments

Comments
 (0)