From patchwork Tue Jan 28 12:18:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3546691 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 11DDFC02DC for ; Tue, 28 Jan 2014 12:49:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0242E20131 for ; Tue, 28 Jan 2014 12:49:07 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E9C0120125 for ; Tue, 28 Jan 2014 12:49:05 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W87gU-0003X8-ER; Tue, 28 Jan 2014 12:22:32 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W87fh-0004Vs-5S; Tue, 28 Jan 2014 12:21:41 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W87dk-0004Df-EA for linux-arm-kernel@lists.infradead.org; Tue, 28 Jan 2014 12:19:46 +0000 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N0400I9827WPSA0@mailout1.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 28 Jan 2014 12:19:08 +0000 (GMT) X-AuditID: cbfec7f5-b7fc96d000004885-f8-52e7a03b7395 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id C1.D0.18565.B30A7E25; Tue, 28 Jan 2014 12:19:07 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N0400FMZ27HEPA0@eusync4.samsung.com>; Tue, 28 Jan 2014 12:19:07 +0000 (GMT) From: Krzysztof Kozlowski To: MyungJoo Ham , Chanwoo Choi , Samuel Ortiz , Lee Jones , Liam Girdwood , Mark Brown , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 11/18] extcon: max14577: Add max14577 prefix to muic_irqs Date: Tue, 28 Jan 2014 13:18:35 +0100 Message-id: <1390911522-28209-12-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1390911522-28209-1-git-send-email-k.kozlowski@samsung.com> References: <1390911522-28209-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnluLIzCtJLcpLzFFi42I5/e/4NV3rBc+DDGafk7OY+vAJm8X1L89Z LV6/MLQ42/SG3eL+16OMFt+udDBZbHp8jdXi8q45bBZrj9xlt7jduILN4nQ3qwO3x85Zd9k9 Nq3qZPO4c20Pm8e8k4Eem5fUe/RtWcXo8XmTXAB7FJdNSmpOZllqkb5dAlfGyRnTWArm8Ves 6JNtYLzC08XIySEhYCIx79UuFghbTOLCvfVsXYxcHEICSxkljn/fA+X0MUm8eH2IDaSKTcBY YvPyJWAJEYHVTBJrFkwFa2cW6GWUuLnbA8QWFvCUuPT0ITOIzSKgKvGobRE7iM0r4CHR8vYB axcjB9A6BYk5k2xAwpxA4VdXG5lAbCEBd4lTx9+xTGDkXcDIsIpRNLU0uaA4KT3XSK84Mbe4 NC9dLzk/dxMjJBC/7mBceszqEKMAB6MSD++D7mdBQqyJZcWVuYcYJTiYlUR4E2c/DxLiTUms rEotyo8vKs1JLT7EyMTBKdXAuDj5Y93F63mSaj/uRD/iavgU+TRT9vOOQp5LW/NmLdz/vdtg akferB8t63lkmXgT4uVv1fzkfxJecbDnIGfm75Nfl3zqTZh8V/Z8nrbP9zO9ZrNtE3xZAhf2 L9X8nchh6b556ttrjxplmOVFG1/llHbuYeGwcX4jajnprcqLcp+yTg6v/74xSizFGYmGWsxF xYkA55YnviICAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140128_071940_645050_768C37F9 X-CRM114-Status: GOOD ( 12.04 ) X-Spam-Score: -7.4 (-------) Cc: Kyungmin Park , Krzysztof Kozlowski , Marek Szyprowski X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add max14577 prefix to muic_irqs array. This prepares for max77836 support in this extcon driver. Signed-off-by: Krzysztof Kozlowski Cc: Kyungmin Park Cc: Marek Szyprowski Acked-by: Chanwoo Choi --- drivers/extcon/extcon-max14577.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/extcon/extcon-max14577.c b/drivers/extcon/extcon-max14577.c index fd48b4909470..fb343f4042d2 100644 --- a/drivers/extcon/extcon-max14577.c +++ b/drivers/extcon/extcon-max14577.c @@ -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[] = { { MAXIM_IRQ_INT1_ADC, "muic-ADC" }, { MAXIM_IRQ_INT1_ADCLOW, "muic-ADCLOW" }, { MAXIM_IRQ_INT1_ADCERR, "muic-ADCError" }, @@ -541,9 +541,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 MAXIM_IRQ_INT1_ADC: @@ -647,8 +647,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(maxim_core->irq_data_muic,