extcon: max14577: Add max14577 prefix to muic_irqs
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 14 Apr 2014 09:17:15 +0000 (11:17 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 23 Apr 2014 13:08:18 +0000 (14:08 +0100)
Add max14577 prefix to muic_irqs array. This prepares for max77836
support in this extcon driver.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Tested-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/extcon/extcon-max14577.c

index 59f084fee4f3f82f69d44bcc073a9b5002183f18..6f921b7c3e5b60cb0724cf0a0635f3d15365a6f4 100644 (file)
@@ -85,7 +85,7 @@ struct max14577_muic_irq {
        unsigned int virq;
 };
 
-static struct max14577_muic_irq muic_irqs[] = {
+static struct max14577_muic_irq max14577_muic_irqs[] = {
        { MAX14577_IRQ_INT1_ADC,        "muic-ADC" },
        { MAX14577_IRQ_INT1_ADCLOW,     "muic-ADCLOW" },
        { MAX14577_IRQ_INT1_ADCERR,     "muic-ADCError" },
@@ -538,9 +538,9 @@ static irqreturn_t max14577_muic_irq_handler(int irq, void *data)
         * However we only need to know whether it was ADC, charger
         * or both interrupts so decode IRQ and turn on proper flags.
         */
-       for (i = 0; i < ARRAY_SIZE(muic_irqs); i++)
-               if (irq == muic_irqs[i].virq)
-                       irq_type = muic_irqs[i].irq;
+       for (i = 0; i < ARRAY_SIZE(max14577_muic_irqs); i++)
+               if (irq == max14577_muic_irqs[i].virq)
+                       irq_type = max14577_muic_irqs[i].irq;
 
        switch (irq_type) {
        case MAX14577_IRQ_INT1_ADC:
@@ -644,8 +644,8 @@ static int max14577_muic_probe(struct platform_device *pdev)
        INIT_WORK(&info->irq_work, max14577_muic_irq_work);
 
        /* Support irq domain for max14577 MUIC device */
-       for (i = 0; i < ARRAY_SIZE(muic_irqs); i++) {
-               struct max14577_muic_irq *muic_irq = &muic_irqs[i];
+       for (i = 0; i < ARRAY_SIZE(max14577_muic_irqs); i++) {
+               struct max14577_muic_irq *muic_irq = &max14577_muic_irqs[i];
                unsigned int virq = 0;
 
                virq = regmap_irq_get_virq(max14577->irq_data, muic_irq->irq);