mfd: palmas: add auto conversion irqs in irq resource
Laxman Dewangan [Mon, 1 Jul 2013 14:23:35 +0000 (19:23 +0530)]
Pass GPADC auto conversion threshold interrupt to the ADC driver
through irq resource.

bug 1301017
bug 1366274

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/243913
(cherry picked from commit a7c4170d5c084d65abf3545781892adb3a96226a)

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/251679
(cherry picked from commit c582e0045aa824e0faad0e846fd6e78d54492ca0)

Change-Id: Iba0108592895c8f8bc0dce3525ced5b8dd72749f
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/336844
GVS: Gerrit_Virtual_Submit
Reviewed-by: Harry Hong <hhong@nvidia.com>

drivers/mfd/palmas.c

index 0cf94b1..595fe10 100644 (file)
@@ -36,7 +36,19 @@ static const struct resource gpadc_resource[] = {
                .start = PALMAS_GPADC_EOC_SW_IRQ,
                .end = PALMAS_GPADC_EOC_SW_IRQ,
                .flags = IORESOURCE_IRQ,
-       }
+       },
+       {
+               .name = "GPADC-AUTO-0",
+               .start = PALMAS_GPADC_AUTO_0_IRQ,
+               .end = PALMAS_GPADC_AUTO_0_IRQ,
+               .flags = IORESOURCE_IRQ,
+       },
+       {
+               .name = "GPADC-AUTO-1",
+               .start = PALMAS_GPADC_AUTO_1_IRQ,
+               .end = PALMAS_GPADC_AUTO_1_IRQ,
+               .flags = IORESOURCE_IRQ,
+       },
 };
 
 static const struct resource usb_resource[] = {