Add support for FLAG_ACTIVE_LOW in libgpiod
During the port to meson, this parameter needs to be set to avoid a
build error. Instead of defaulting to zero, it makes sense to use
FLAG_ACTIVE_LOW where appropriate.
The benefits are that get_value() returns the asserted status of the
GPIO which simplifies checking for events, and 'gpioinfo' now shows
which GPIO lines are configured as active-low.
Tested:
Confirmed that both active-high and active-low events are detected
correctly.
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Change-Id: I515bee9f29b64bfd63f125be9676aaaacbd855c5
5 files changed