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

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 <warthog618@gmail.com>
Link: https://lore.kernel.org/r/20240626052925.174272-4-warthog618@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

authored by

Kent Gibson and committed by
Bartosz Golaszewski
e48fe75a 3550b5db

+4 -1
+4 -1
Documentation/userspace-api/gpio/gpio-handle-set-config-ioctl.rst
··· 43 43 44 44 The same :ref:`gpio-get-linehandle-config-rules` and 45 45 :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**). 47 50 48 51 The motivating use case for this command is changing direction of 49 52 bi-directional lines between input and output, but it may be used more