MIPS: RB532: provide GPIO_BUILTIN_NR and irq_to_gpio/gpio_to_irq
authorFlorian Fainelli <florian@openwrt.org>
Thu, 11 Sep 2008 15:48:00 +0000 (17:48 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 11 Oct 2008 15:18:57 +0000 (16:18 +0100)
commit9609e74093abd9f61fb1d20a8915a8ea87c77d5a
treeaa624059b2100b657275ad93e452d6bb0f325ee9
parentd302d05cf4d25f4fbbec0f9338fac13ee0c0ad89
MIPS: RB532: provide GPIO_BUILTIN_NR and irq_to_gpio/gpio_to_irq

This patchs defines the number of built-in the GPIOs present
on the SoC as Documentation/gpio.txt recommends to do.
Define irq_to_gpio/gpio_to_irq to return the right values so that
it fixes a compilation error on drivers/gpio/gpiolib.c
when enabling debugfs.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mach-rc32434/gpio.h