diff options
author | Hannu Hartikainen <hannu@hrtk.in> | 2021-07-08 18:20:54 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2021-07-21 15:21:36 +0200 |
commit | f3f1017a98f91355671feb0e741391999a43b55d (patch) | |
tree | c534cc067b6428634ed76afe81c26669f232b836 /drivers/gpio | |
parent | Documentation: gpio: driver.rst: Remove gpiochip_irqchip_add mention (diff) | |
download | linux-dev-f3f1017a98f91355671feb0e741391999a43b55d.tar.xz linux-dev-f3f1017a98f91355671feb0e741391999a43b55d.zip |
docs: gpio: explain GPIOD_OUT_* values and toggling active low
I was confused about the gpiod_flags values and thought that
GPIOD_OUT_LOW and GPIOD_OUT_HIGH set the line to be active low / active
high. This is not true, but I got the misconception because the flags
GPIOD_OUT_*_OPEN_DRAIN do change line configuration and there's a
subchapter about *active low* and *open drain* semantics.
Add an explicit mention that the initial value is a logical value (and
not the line configuration or physical line level). Also add a mention
of the function gpiod_toggle_active_low which was previously missing
from this document.
Signed-off-by: Hannu Hartikainen <hannu@hrtk.in>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/gpio')
0 files changed, 0 insertions, 0 deletions