From patchwork Wed Jun 1 09:53:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 9146985 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C6C4660761 for ; Wed, 1 Jun 2016 09:55:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6CEF20093 for ; Wed, 1 Jun 2016 09:55:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB5FE2040D; Wed, 1 Jun 2016 09:55:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21F0626785 for ; Wed, 1 Jun 2016 09:55:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757667AbcFAJyh (ORCPT ); Wed, 1 Jun 2016 05:54:37 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:33998 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932346AbcFAJyc (ORCPT ); Wed, 1 Jun 2016 05:54:32 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O8300BQD7IPL090@mailout2.w1.samsung.com>; Wed, 01 Jun 2016 10:54:25 +0100 (BST) X-AuditID: cbfec7f5-f792a6d000001302-57-574eb0d15dca Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id F5.A4.04866.1D0BE475; Wed, 1 Jun 2016 10:54:25 +0100 (BST) Received: from AMDC2174.DIGITAL.local ([106.120.53.17]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O8300COA7ICBX70@eusync2.samsung.com>; Wed, 01 Jun 2016 10:54:25 +0100 (BST) From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , MyungJoo Ham , Chanwoo Choi , Dmitry Torokhov , Richard Purdie , Jacek Anaszewski , Lee Jones , Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , Liam Girdwood , Mark Brown , Alessandro Zummo , Alexandre Belloni , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-pm@vger.kernel.org, rtc-linux@googlegroups.com Cc: r.baldyga@hackerion.com, Bartlomiej Zolnierkiewicz Subject: [PATCH v7 3/6] mfd: max8997: Change irq names to upper case Date: Wed, 01 Jun 2016 11:53:58 +0200 Message-id: <1464774841-1439-3-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1464774841-1439-1-git-send-email-k.kozlowski@samsung.com> References: <1464774841-1439-1-git-send-email-k.kozlowski@samsung.com> In-reply-to: <1464773339-756-1-git-send-email-k.kozlowski@samsung.com> References: <1464773339-756-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrEIsWRmVeSWpSXmKPExsVy+t/xK7oXN/iFG3x/yWGx5OJVdouOa4uZ LDbOWM9qMfXhEzaL61+es1pMevKe2WL+kXOsFocXvWC0mLhyMrNF79XnjBavXxha9D9+zWxx /+tRRotvVzqYLDY9vsZqcfPTN1aLy7vmsFlsfbOO0eJz7xFGixnn9zFZ3G5cwWZx998nRovd u56yWuzv7GC0OL27xEHS48mmi4weO2fdZffYM/Ekm8eRncfYPDav0PLYtKqTzePOtT1A3pJ6 jz3zf7B69G1Zxegxfd5PJo/Pm+QCeKK4bFJSczLLUov07RK4Mo6ebWcuuC5dcXvdH6YGxvvi XYycHBICJhLTjz1hh7DFJC7cW88GYgsJLGWUWLuar4uRC8huZJJo+dHEDJJgEzCW2Lx8CRtI QkTgI5vE5ffPGLsYOTiYBYIlfk5lBKkRFnCRONk5DcxmEVCVOPv6JthQXgE3ic8rNjBCLJOT OHlsMiuIzSngLnF/zh2oxW4Sy5/vZwIZyQlk/zzDAWIKCbhKfF/BNYGRfwEjwypG0dTS5ILi pPRcI73ixNzi0rx0veT83E2MkJj7uoNx6TGrQ4wCHIxKPLwVl33DhVgTy4orcw8xSnAwK4nw zlnlFy7Em5JYWZValB9fVJqTWnyIUZqDRUmcd+au9yFCAumJJanZqakFqUUwWSYOTqkGxoj0 1zO7Ovw8rKJnbNO4PD+Yeduem/Jr+RVyj5o63XNTvSmXs/tv4vU9qYZNizY3LTGdcllMT0FS 7OW9sgTPysAV03tjDvJ5XZ0htVP0bslz7bsLLfQ+ML7siundfXCee4FAarJXsP/DsP4JEeVf Q/YuFbV47/Zg2qX0D5z3Nkdt1Nx+nIW1TYmlOCPRUIu5qDgRADqkOx21AgAA Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Robert Baldyga This patch changes naming convention of MUIC interrupts form CamelCase to upper case. It makes names more readable and consistent with another interrupt names in max8997 driver. Signed-off-by: Robert Baldyga Reviewed-by: Krzysztof Kozlowski [For the mfd part] Acked-by: Lee Jones Acked-by: Chanwoo Choi Acked-by: Alexandre Belloni [k.kozlowski: Collect acks, rebase on v4.6-rc6] Signed-off-by: Krzysztof Kozlowski --- drivers/extcon/extcon-max8997.c | 32 ++++++++++++++++---------------- include/linux/mfd/max8997-private.h | 16 ++++++++-------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/drivers/extcon/extcon-max8997.c b/drivers/extcon/extcon-max8997.c index 9d27cc23038f..68754ac2c8ea 100644 --- a/drivers/extcon/extcon-max8997.c +++ b/drivers/extcon/extcon-max8997.c @@ -46,15 +46,15 @@ struct max8997_muic_irq { }; static struct max8997_muic_irq muic_irqs[] = { - { MAX8997_MUICIRQ_ADCError, "muic-ADCERROR" }, - { MAX8997_MUICIRQ_ADCLow, "muic-ADCLOW" }, - { MAX8997_MUICIRQ_ADC, "muic-ADC" }, - { MAX8997_MUICIRQ_VBVolt, "muic-VBVOLT" }, - { MAX8997_MUICIRQ_DBChg, "muic-DBCHG" }, - { MAX8997_MUICIRQ_DCDTmr, "muic-DCDTMR" }, - { MAX8997_MUICIRQ_ChgDetRun, "muic-CHGDETRUN" }, - { MAX8997_MUICIRQ_ChgTyp, "muic-CHGTYP" }, - { MAX8997_MUICIRQ_OVP, "muic-OVP" }, + { MAX8997_MUICIRQ_ADCERROR, "MUIC-ADCERROR" }, + { MAX8997_MUICIRQ_ADCLOW, "MUIC-ADCLOW" }, + { MAX8997_MUICIRQ_ADC, "MUIC-ADC" }, + { MAX8997_MUICIRQ_VBVOLT, "MUIC-VBVOLT" }, + { MAX8997_MUICIRQ_DBCHG, "MUIC-DBCHG" }, + { MAX8997_MUICIRQ_DCDTMR, "MUIC-DCDTMR" }, + { MAX8997_MUICIRQ_CHGDETRUN, "MUIC-CHGDETRUN" }, + { MAX8997_MUICIRQ_CHGTYP, "MUIC-CHGTYP" }, + { MAX8997_MUICIRQ_OVP, "MUIC-OVP" }, }; /* Define supported cable type */ @@ -540,17 +540,17 @@ static void max8997_muic_irq_work(struct work_struct *work) } switch (irq_type) { - case MAX8997_MUICIRQ_ADCError: - case MAX8997_MUICIRQ_ADCLow: + case MAX8997_MUICIRQ_ADCERROR: + case MAX8997_MUICIRQ_ADCLOW: case MAX8997_MUICIRQ_ADC: /* Handle all of cable except for charger cable */ ret = max8997_muic_adc_handler(info); break; - case MAX8997_MUICIRQ_VBVolt: - case MAX8997_MUICIRQ_DBChg: - case MAX8997_MUICIRQ_DCDTmr: - case MAX8997_MUICIRQ_ChgDetRun: - case MAX8997_MUICIRQ_ChgTyp: + case MAX8997_MUICIRQ_VBVOLT: + case MAX8997_MUICIRQ_DBCHG: + case MAX8997_MUICIRQ_DCDTMR: + case MAX8997_MUICIRQ_CHGDETRUN: + case MAX8997_MUICIRQ_CHGTYP: /* Handle charger cable */ ret = max8997_muic_chg_handler(info); break; diff --git a/include/linux/mfd/max8997-private.h b/include/linux/mfd/max8997-private.h index f42ea222988f..2817fa69383e 100644 --- a/include/linux/mfd/max8997-private.h +++ b/include/linux/mfd/max8997-private.h @@ -411,14 +411,14 @@ enum max8997_irq { enum max8997_irq_muic { MAX8997_MUICIRQ_ADC, - MAX8997_MUICIRQ_ADCLow, - MAX8997_MUICIRQ_ADCError, - - MAX8997_MUICIRQ_ChgTyp, - MAX8997_MUICIRQ_ChgDetRun, - MAX8997_MUICIRQ_DCDTmr, - MAX8997_MUICIRQ_DBChg, - MAX8997_MUICIRQ_VBVolt, + MAX8997_MUICIRQ_ADCLOW, + MAX8997_MUICIRQ_ADCERROR, + + MAX8997_MUICIRQ_CHGTYP, + MAX8997_MUICIRQ_CHGDETRUN, + MAX8997_MUICIRQ_DCDTMR, + MAX8997_MUICIRQ_DBCHG, + MAX8997_MUICIRQ_VBVOLT, MAX8997_MUICIRQ_OVP,