]> git.karo-electronics.de Git - karo-tx-linux.git/commit
gpiolib: iron out include ladder mistakes
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 6 Nov 2012 16:16:39 +0000 (17:16 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 8 Nov 2012 13:57:38 +0000 (14:57 +0100)
commit9ac13acc3dfb3f360062351a15cbdea75b2d8d42
treef3917d61ca8407065dc374aaa73bb43e677e84b9
parent821bfd12282e881bdc38dfd7f6b475cdc743e50d
gpiolib: iron out include ladder mistakes

The <*/gpio.h> includes are updated again: now we need to account
for the problem introduced by commit:
595679a8038584df7b9398bf34f61db3c038bfea
"gpiolib: fix up function prototypes etc"

Actually we need static inlines in include/asm-generic/gpio.h
as well since we may have GPIOLIB but not PINCTRL.
Make sure to move all the CONFIG_PINCTRL business
to the end of the file so we are sure we have
declared struct gpio_chip.

And we need to keep the static inlines in <linux/gpio.h>
but here for the !CONFIG_GENERIC_GPIO case, and then we
may as well throw in a few warnings like the other
prototypes there, if someone would have the bad taste
of compiling without GENERIC_GPIO even.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/asm-generic/gpio.h
include/linux/gpio.h