gpiolib: Fix buggy flag detection code
Both GPIOF_ACTIVE_LOW and GPIOF_INIT_ACTIVE are multi-bit constants so
detecting their assertion using simple bit-wise and is incorrect and
would lead to false positives.

Fixes: bbc499914 ("gpiolib: Add code to support "active low" GPIOs")

Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
1 parent a0c2642 commit 3918ca48a7fb20488786dd9644c31e6cae3195bd
@Andrey Smirnov Andrey Smirnov authored on 28 Jul 2017
Lucas Stach committed on 30 Jul 2017
Showing 1 changed file
View
drivers/gpio/gpiolib.c