gpio: allow setting ARCH_NR_GPIOS from Kconfig
authorArnd Bergmann <arnd@arndb.de>
Tue, 16 Feb 2016 15:40:38 +0000 (16:40 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 18 Feb 2016 23:22:54 +0000 (00:22 +0100)
commitaa6aedb547209391db75b2e4fdbce6b442fd5891
tree5bcf3f76c49492d828110606e5e7d7684e95287f
parentd7f7764e02ad8c4c8919b2484212aca788001765
gpio: allow setting ARCH_NR_GPIOS from Kconfig

The ARM version of asm/gpio.h basically just contains the same definitions
as the gpiolib version, with the exception of ARCH_NR_GPIOS.

This adds the option for overriding the constant through Kconfig to
the architecture-independent header, so we can remove the ARM specific
file later.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/asm-generic/gpio.h