aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-ab8540.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-ab8540.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-ab8540.c')
-rw-r--r--drivers/pinctrl/pinctrl-ab8540.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pinctrl/pinctrl-ab8540.c b/drivers/pinctrl/pinctrl-ab8540.c
index ac2e1352a5a2..8ee1e8d95f65 100644
--- a/drivers/pinctrl/pinctrl-ab8540.c
+++ b/drivers/pinctrl/pinctrl-ab8540.c
@@ -377,9 +377,9 @@ static struct pullud ab8540_pullud = {
377 * GPIO51 to GPIO54 377 * GPIO51 to GPIO54
378 */ 378 */
379struct abx500_gpio_irq_cluster ab8540_gpio_irq_cluster[] = { 379struct abx500_gpio_irq_cluster ab8540_gpio_irq_cluster[] = {
380 GPIO_IRQ_CLUSTER(43, 43, 126), 380 GPIO_IRQ_CLUSTER(43, 43, AB8540_INT_GPIO43F),
381 GPIO_IRQ_CLUSTER(44, 44, 127), 381 GPIO_IRQ_CLUSTER(44, 44, AB8540_INT_GPIO44F),
382 GPIO_IRQ_CLUSTER(51, 54, 63), 382 GPIO_IRQ_CLUSTER(51, 54, AB9540_INT_GPIO51R),
383}; 383};
384 384
385static struct abx500_pinctrl_soc_data ab8540_soc = { 385static struct abx500_pinctrl_soc_data ab8540_soc = {