summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/pinctrl-ab9540.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-02-04 15:21:41 +0100
committerLinus Walleij <linus.walleij@linaro.org>2013-02-10 15:48:43 +0100
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]
};
struct abx500_gpio_irq_cluster ab9540_gpio_irq_cluster[] = {
- GPIO_IRQ_CLUSTER(10, 13, 34),
- GPIO_IRQ_CLUSTER(24, 25, 24),
- GPIO_IRQ_CLUSTER(40, 41, 14),
- GPIO_IRQ_CLUSTER(50, 54, 63),
+ GPIO_IRQ_CLUSTER(10, 13, AB8500_INT_GPIO10R),
+ GPIO_IRQ_CLUSTER(24, 25, AB8500_INT_GPIO24R),
+ GPIO_IRQ_CLUSTER(40, 41, AB8500_INT_GPIO40R),
+ GPIO_IRQ_CLUSTER(50, 54, AB9540_INT_GPIO50R),
};
static struct abx500_pinctrl_soc_data ab9540_soc = {