[PATCH v2] gpiolib: return 0 or 1 in gpiod_get_value*() functions

2015-11-30 Thread Jose Diaz de Grenu de Pedro
value. This patch does a double inversion when the GPIO is active high to make sure either 0 or 1 is returned by these functions. Signed-off-by: Jose Diaz de Grenu de Pedro Signed-off-by: Hector Palacios --- change in v2: - add missing semicolon --- drivers/gpio/gpiolib.c | 12 ++-- 1

[PATCH] gpiolib: return 0 or 1 in gpiod_get_value*() functions

2015-11-26 Thread Jose Diaz de Grenu de Pedro
value. This patch does a double inversion when the GPIO is active high to make sure either a 0 or 1 is returned by these functions. Signed-off-by: Jose Diaz de Grenu de Pedro Signed-off-by: Hector Palacios --- drivers/gpio/gpiolib.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-)