Documentation: gpio: Reconfiguration with unset direction (uAPI v1)
authorKent Gibson <warthog618@gmail.com>
Wed, 26 Jun 2024 05:29:24 +0000 (13:29 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 1 Jul 2024 07:38:45 +0000 (09:38 +0200)
Update description of reconfiguration rules, adding requirement that a
direction flag be set or the configuration is considered invalid.

Signed-off-by: Kent Gibson <warthog618@gmail.com>
Link: https://lore.kernel.org/r/20240626052925.174272-4-warthog618@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Documentation/userspace-api/gpio/gpio-handle-set-config-ioctl.rst

index d002a84681acf902cb567be77018a83d26137dc9..a03f30db63ab5bb42390bd851bb6d05428b4f6e8 100644 (file)
@@ -43,7 +43,10 @@ The configuration applies to all requested lines.
 
 The same :ref:`gpio-get-linehandle-config-rules` and
 :ref:`gpio-get-linehandle-config-support` that apply when requesting the
-lines also apply when updating the line configuration.
+lines also apply when updating the line configuration, with the additional
+restriction that a direction flag must be set. Requesting an invalid
+configuration, including without a direction flag set, is an error
+(**EINVAL**).
 
 The motivating use case for this command is changing direction of
 bi-directional lines between input and output, but it may be used more