diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2014-04-14 05:17:15 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-04-23 09:08:18 -0400 |
commit | 2b1d18f181b8712564204506c1bd1a1e335b689f (patch) | |
tree | 6f8681e0d5281c7a4c88b7ab8b3a0d40f266e896 /drivers/extcon | |
parent | eccb80cc22354a12255c2579247a92a30a4c881b (diff) |
extcon: max14577: Add max14577 prefix to muic_irqs
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>
Diffstat (limited to 'drivers/extcon')
-rw-r--r-- | drivers/extcon/extcon-max14577.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/extcon/extcon-max14577.c b/drivers/extcon/extcon-max14577.c index 59f084fee4f3..6f921b7c3e5b 100644 --- a/drivers/extcon/extcon-max14577.c +++ b/drivers/extcon/extcon-max14577.c | |||
@@ -85,7 +85,7 @@ struct max14577_muic_irq { | |||
85 | unsigned int virq; | 85 | unsigned int virq; |
86 | }; | 86 | }; |
87 | 87 | ||
88 | static struct max14577_muic_irq muic_irqs[] = { | 88 | static struct max14577_muic_irq max14577_muic_irqs[] = { |
89 | { MAX14577_IRQ_INT1_ADC, "muic-ADC" }, | 89 | { MAX14577_IRQ_INT1_ADC, "muic-ADC" }, |
90 | { MAX14577_IRQ_INT1_ADCLOW, "muic-ADCLOW" }, | 90 | { MAX14577_IRQ_INT1_ADCLOW, "muic-ADCLOW" }, |
91 | { MAX14577_IRQ_INT1_ADCERR, "muic-ADCError" }, | 91 | { MAX14577_IRQ_INT1_ADCERR, "muic-ADCError" }, |
@@ -538,9 +538,9 @@ static irqreturn_t max14577_muic_irq_handler(int irq, void *data) | |||
538 | * However we only need to know whether it was ADC, charger | 538 | * However we only need to know whether it was ADC, charger |
539 | * or both interrupts so decode IRQ and turn on proper flags. | 539 | * or both interrupts so decode IRQ and turn on proper flags. |
540 | */ | 540 | */ |
541 | for (i = 0; i < ARRAY_SIZE(muic_irqs); i++) | 541 | for (i = 0; i < ARRAY_SIZE(max14577_muic_irqs); i++) |
542 | if (irq == muic_irqs[i].virq) | 542 | if (irq == max14577_muic_irqs[i].virq) |
543 | irq_type = muic_irqs[i].irq; | 543 | irq_type = max14577_muic_irqs[i].irq; |
544 | 544 | ||
545 | switch (irq_type) { | 545 | switch (irq_type) { |
546 | case MAX14577_IRQ_INT1_ADC: | 546 | case MAX14577_IRQ_INT1_ADC: |
@@ -644,8 +644,8 @@ static int max14577_muic_probe(struct platform_device *pdev) | |||
644 | INIT_WORK(&info->irq_work, max14577_muic_irq_work); | 644 | INIT_WORK(&info->irq_work, max14577_muic_irq_work); |
645 | 645 | ||
646 | /* Support irq domain for max14577 MUIC device */ | 646 | /* Support irq domain for max14577 MUIC device */ |
647 | for (i = 0; i < ARRAY_SIZE(muic_irqs); i++) { | 647 | for (i = 0; i < ARRAY_SIZE(max14577_muic_irqs); i++) { |
648 | struct max14577_muic_irq *muic_irq = &muic_irqs[i]; | 648 | struct max14577_muic_irq *muic_irq = &max14577_muic_irqs[i]; |
649 | unsigned int virq = 0; | 649 | unsigned int virq = 0; |
650 | 650 | ||
651 | virq = regmap_irq_get_virq(max14577->irq_data, muic_irq->irq); | 651 | virq = regmap_irq_get_virq(max14577->irq_data, muic_irq->irq); |