core: implement gpiod_line_polarity()
authorBartosz Golaszewski <bartekgola@gmail.com>
Tue, 3 Jan 2017 10:17:19 +0000 (11:17 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Tue, 3 Jan 2017 10:17:19 +0000 (11:17 +0100)
commitf2349eb8a31cce9fda84f1ef6dbcca17323bfc50
treeb7a887f50a68b4a05268b1ddc24c31ad622954ad
parentb87d908f53f80981d715526dcba26eb698647587
core: implement gpiod_line_polarity()

Instead of returning a boolean value from gpiod_line_is_active_low(),
introduce two separate values as is done for direction and implement
gpiod_line_polarity(). This makes the code less confusing.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
core.c
gpiod.h
gpioinfo.c