treewide: simplify the active-low line property
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 16 Dec 2020 12:19:59 +0000 (13:19 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 17 Dec 2020 17:04:17 +0000 (18:04 +0100)
commitd2a70828f8ab08b80b374cf37ec4e1875aac30fd
tree84a2d0f12bdb99c04410817e4d2d5030ccff2a20
parenteb690e46efd09cd9a758ed1b19f99601f7b5de8a
treewide: simplify the active-low line property

Unlike line direction - where input and output modes are equal, no signal
inversion (active-high) is the natural state of the line while active-low
is less likely. Let's drop the ACTIVE_STATE enum treewide and provide a
boolean property for lines - is_active_low() - to reflect that fact. This
function returning false means the line is "active-high".

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
bindings/cxx/examples/gpioinfocxx.cpp
bindings/cxx/gpiod.hpp
bindings/cxx/line.cpp
bindings/cxx/tests/tests-line.cpp
bindings/python/examples/gpioinfo.py
bindings/python/gpiodmodule.c
bindings/python/tests/gpiod_py_test.py
include/gpiod.h
lib/core.c
tests/tests-line.c
tools/gpioinfo.c