summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-ab9540.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-02-04 09:21:41 -0500
committerLinus Walleij <linus.walleij@linaro.org>2013-02-10 09:48:43 -0500
commit43a255dba132c1783f4ca16b528d55e55b4b4d83 (patch)
tree5da6c3a5eb88728ab7be58626ebd28571a155782 /drivers/pinctrl/pinctrl-ab9540.c
parenta6a16d274e734afa769a9651dfaf8315d404c116 (diff)
pinctrl/abx500: use direct IRQ defines
Make it harder to do mistakes by introducing the actual defined ABx500 IRQ number into the IRQ cluster definitions. Deduct cluster offset from the GPIO offset to make each cluster coherent. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-ab9540.c')
-rw-r--r--drivers/pinctrl/pinctrl-ab9540.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/pinctrl/pinctrl-ab9540.c b/drivers/pinctrl/pinctrl-ab9540.c
index a169e5bea172..7610bd012b98 100644
--- a/drivers/pinctrl/pinctrl-ab9540.c
+++ b/drivers/pinctrl/pinctrl-ab9540.c
@@ -455,10 +455,10 @@ struct alternate_functions ab9540alternate_functions[AB9540_GPIO_MAX_NUMBER + 1]
455}; 455};
456 456
457struct abx500_gpio_irq_cluster ab9540_gpio_irq_cluster[] = { 457struct abx500_gpio_irq_cluster ab9540_gpio_irq_cluster[] = {
458 GPIO_IRQ_CLUSTER(10, 13, 34), 458 GPIO_IRQ_CLUSTER(10, 13, AB8500_INT_GPIO10R),
459 GPIO_IRQ_CLUSTER(24, 25, 24), 459 GPIO_IRQ_CLUSTER(24, 25, AB8500_INT_GPIO24R),
460 GPIO_IRQ_CLUSTER(40, 41, 14), 460 GPIO_IRQ_CLUSTER(40, 41, AB8500_INT_GPIO40R),
461 GPIO_IRQ_CLUSTER(50, 54, 63), 461 GPIO_IRQ_CLUSTER(50, 54, AB9540_INT_GPIO50R),
462}; 462};
463 463
464static struct abx500_pinctrl_soc_data ab9540_soc = { 464static struct abx500_pinctrl_soc_data ab9540_soc = {