]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: move GPIOD flags outside #ifdef
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 19 Aug 2014 17:00:53 +0000 (12:00 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 21 Aug 2014 12:44:36 +0000 (07:44 -0500)
commit024372296380a880e40c053bb2021360b40f3354
tree162a1d981c519433f076244882ce7045a63c635c
parenta7421e0f6f9ff18b0f139c3b695afcf6acddb368
gpio: move GPIOD flags outside #ifdef

The GPIOD flags are defined inside the #ifdef CONFIG_GPIOLIB
switch, making the gpiolib stubs fail if these flags are used
by a consumer. This is not correct: the stubs should compile
fine without GPIOLIB.

Reported-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/linux/gpio/consumer.h