gpio: move varargs hack outside #ifdef GPIOLIB
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 1 Sep 2014 13:15:40 +0000 (15:15 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 2 Sep 2014 08:09:43 +0000 (10:09 +0200)
commit0dbc8b7afef6e4fddcfebcbacbeb269a0a3b06d5
treecc5e15bf4969b3a2f78724249d121fed0af2eeef
parent7cc01f630a967b25d9de200767b42177e4fa0bac
gpio: move varargs hack outside #ifdef GPIOLIB

commit 39b2bbe3d715cf5013b5c48695ccdd25bd3bf120
"gpio: add flags argument to gpiod_get*() functions"
added a dynamic flags argument to all the GPIOD getter
functions, however this did not cover the stubs so
when people used gpiod stubs to compile out descriptor
code, compilation failed.

Solve this by:
- Also rename all the stub functions __gpiod_*
- Moving the vararg hack outside of #ifdef CONFIG_GPIOLIB
  so these will always be available.

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