]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: Document line value semantics
authorLinus Walleij <linusw@kernel.org>
Fri, 6 Mar 2026 13:22:00 +0000 (14:22 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Mon, 9 Mar 2026 09:16:00 +0000 (10:16 +0100)
commit5645f805927c9bd4443e6143e487ef3ffea34aaf
tree7a1b45ad07ddc589d2ea434e0d02c696f66b7716
parent3671411e9073cb06d726dbf10835d158e18f0796
gpio: Document line value semantics

It is not clearly documented that the GPIO driver API expect the
driver to get/set the physical level of the GPIO line and the
consumer API will get/set the logic level. Document this in
relevant places.

Reported-by: David Jander <david@protonic.nl>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/20260306-gpio-doc-levels-v1-1-19928739e400@kernel.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Documentation/driver-api/gpio/driver.rst
include/linux/gpio/driver.h