]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3e49db819c7d03d12e2666b9bf589c24643576e2
treecc5e15bf4969b3a2f78724249d121fed0af2eeef
parent8ea9339b2fbed1769e16e03aeb2fecd7c93af77d
gpio: move varargs hack outside #ifdef GPIOLIB

commit 5767dae43dee06da134e4bad30e44d064103eab8
"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