]> 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)
commit13187dd7706ddd628baca01d96269f8179eadfc3
tree162a1d981c519433f076244882ce7045a63c635c
parentb332993db2340c4a07ee13953dca6c7ad33f450b
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