mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-20 21:04:40 +08:00
ARM: pxa: align NR_BUILTIN_GPIO with GPIO interrupt number
Avoid to mismatch between NR_BUILTIN_GPIO and GPIO interrupt number Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com> Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
This commit is contained in:
parent
6932613060
commit
a0a4dcbca7
@ -99,7 +99,7 @@
|
|||||||
#define GAFR(x) GPIO_REG(0x54 + (((x) & 0x70) >> 2))
|
#define GAFR(x) GPIO_REG(0x54 + (((x) & 0x70) >> 2))
|
||||||
|
|
||||||
|
|
||||||
#define NR_BUILTIN_GPIO 128
|
#define NR_BUILTIN_GPIO PXA_GPIO_IRQ_NUM
|
||||||
|
|
||||||
#define gpio_to_bank(gpio) ((gpio) >> 5)
|
#define gpio_to_bank(gpio) ((gpio) >> 5)
|
||||||
#define gpio_to_irq(gpio) IRQ_GPIO(gpio)
|
#define gpio_to_irq(gpio) IRQ_GPIO(gpio)
|
||||||
|
Loading…
Reference in New Issue
Block a user