aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-ab8500.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-ab8500.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-ab8500.c')
-rw-r--r--drivers/pinctrl/pinctrl-ab8500.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pinctrl/pinctrl-ab8500.c b/drivers/pinctrl/pinctrl-ab8500.c
index 42675ee3de1d..3b471d87c211 100644
--- a/drivers/pinctrl/pinctrl-ab8500.c
+++ b/drivers/pinctrl/pinctrl-ab8500.c
@@ -456,9 +456,9 @@ struct alternate_functions ab8500_alternate_functions[AB8500_GPIO_MAX_NUMBER + 1
456 * GPIO36 to GPIO41 456 * GPIO36 to GPIO41
457 */ 457 */
458struct abx500_gpio_irq_cluster ab8500_gpio_irq_cluster[] = { 458struct abx500_gpio_irq_cluster ab8500_gpio_irq_cluster[] = {
459 GPIO_IRQ_CLUSTER(6, 13, 34), 459 GPIO_IRQ_CLUSTER(6, 13, AB8500_INT_GPIO6R),
460 GPIO_IRQ_CLUSTER(24, 25, 24), 460 GPIO_IRQ_CLUSTER(24, 25, AB8500_INT_GPIO24R),
461 GPIO_IRQ_CLUSTER(36, 41, 14), 461 GPIO_IRQ_CLUSTER(36, 41, AB8500_INT_GPIO36R),
462}; 462};
463 463
464static struct abx500_pinctrl_soc_data ab8500_soc = { 464static struct abx500_pinctrl_soc_data ab8500_soc = {