summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-ab8500.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-ab8500.c
parenta6a16d274e734afa769a9651dfaf8315d404c116 (diff)
downloadlinux-43a255dba132c1783f4ca16b528d55e55b4b4d83.tar.gz
linux-43a255dba132c1783f4ca16b528d55e55b4b4d83.tar.bz2
linux-43a255dba132c1783f4ca16b528d55e55b4b4d83.zip
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
* GPIO36 to GPIO41
*/
struct abx500_gpio_irq_cluster ab8500_gpio_irq_cluster[] = {
- GPIO_IRQ_CLUSTER(6, 13, 34),
- GPIO_IRQ_CLUSTER(24, 25, 24),
- GPIO_IRQ_CLUSTER(36, 41, 14),
+ GPIO_IRQ_CLUSTER(6, 13, AB8500_INT_GPIO6R),
+ GPIO_IRQ_CLUSTER(24, 25, AB8500_INT_GPIO24R),
+ GPIO_IRQ_CLUSTER(36, 41, AB8500_INT_GPIO36R),
};
static struct abx500_pinctrl_soc_data ab8500_soc = {