]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: consumer.h: Move forward declarations outside #ifdef
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 4 Feb 2014 12:42:10 +0000 (13:42 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 6 Feb 2014 09:22:56 +0000 (10:22 +0100)
commit55915d259a31064d164aab0c49e78756fa1f02bc
tree4fe10e70f6899af60119f01ae0de50ca74ab1e65
parentdd3d900a5f1d7c4dd11d93391831ab1cac0f7335
gpio: consumer.h: Move forward declarations outside #ifdef

Make sure that the forward declared structs in gpio/consumer.h are also visible
on the else branch of the CONFIG_GPIOLIB #ifdef.

Fixes the following warnings and their associated errors when CONFIG_GPIOLIB is
not selected:
include/linux/gpio/consumer.h:67:14: warning: 'struct device' declared inside parameter list
include/linux/gpio/consumer.h:67:14: warning: its scope is only this definition or declaration, which is probably not what you want
[...]

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