Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp745568imc; Sun, 10 Mar 2019 20:49:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqze6h4ZmfmBS7r5qk7XqH59AKrEGx3wXF0HAaIQoWPETrfkZKmuRt3AIelPyDzNQepfS+NO X-Received: by 2002:a63:445e:: with SMTP id t30mr7198429pgk.27.1552276176998; Sun, 10 Mar 2019 20:49:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552276176; cv=none; d=google.com; s=arc-20160816; b=P4nK/XfYeULwLhBfptJfUHf3Am7Hgr7/mbmAH1/n/GY2+97ZBHMefvAD8fnIf697BQ vvXLSwSzS8IqFNQO23usJLWde3BZR0HPkl5jYguKf76aBXanjTOSt8/6a+ZuEeLH1SD5 xWsQs2FeIT4C+nozN32BxhQA+9dI8a5Y3d3n+W/4eubzT71VHnppwkWIyBlKXZPBorLn Rnnu16H19lW57OVKyW26ZLzhc0zXlg9g7pCy/IVR0yNA1PsY7cIJv6ID1K0PPbobB3Qr AB6Zm5x5V45/qXSY53qvl7Zh1UEA7YZxCNz8zvswbs1K9sN6kc5jli9sci5VE6xdw/lX H6JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=EOw/9pV/K4Uvg4S3fOtREgvbWoodeCDdH8oF2DzJdoM=; b=SI7ugfsRSH+54Dkqn5uvxRCfVsli2P3WYnlYutzIu+NrW9hq9Ww1mNvTmBJXUCM+Ng POMy2aY+2KMDSgdBqegpxVEiyWiYeGLn2dbBZXdIHLOEe57meGMjw99Ms/GqlA+/G8Yb g9hJ6Qk+ptq0nKF0ISSU3QSIkpQ429cNwOnBzn2MzpTfzQF6bzAFKRpo7j6zTEOpcOmJ ZC4YYd6BTA2KRfDFLYdxbgQWRFXztaZdRL369TTj7iKQ1/JbOjKnmemv0g0IlY56I2Xc QEld3JHbIXe7abFYLhodsRxWvtzMVU6Xy7om4C2MUEHrndbq3BerV8ZMORFq0/Us+4F/ zSRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y12si4354304plk.353.2019.03.10.20.49.21; Sun, 10 Mar 2019 20:49:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727404AbfCKDsc (ORCPT + 99 others); Sun, 10 Mar 2019 23:48:32 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:22717 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727367AbfCKDsY (ORCPT ); Sun, 10 Mar 2019 23:48:24 -0400 X-UUID: e244d0509a914145b256456208f515bf-20190311 X-UUID: e244d0509a914145b256456208f515bf-20190311 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1377849975; Mon, 11 Mar 2019 11:48:15 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 11 Mar 2019 11:48:07 +0800 Received: from mtkslt302.mediatek.inc (10.21.14.115) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 11 Mar 2019 11:48:07 +0800 From: Hsin-Hsiung Wang To: Lee Jones , Rob Herring , Matthias Brugger , Mark Brown , Eddie Huang CC: Marc Zyngier , , , , , , , Liam Girdwood , Mark Rutland , Sean Wang , Alessandro Zummo , Alexandre Belloni , Hsin-Hsiung Wang Subject: [PATCH v2 1/9] mfd: mt6397: clean up code Date: Mon, 11 Mar 2019 11:46:23 +0800 Message-ID: <1552275991-34648-2-git-send-email-hsin-hsiung.wang@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1552275991-34648-1-git-send-email-hsin-hsiung.wang@mediatek.com> References: <1552275991-34648-1-git-send-email-hsin-hsiung.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 84217CD1F6B95900AED6305B6076435ED06913CDDA7492809B3DFFBEC30FFD2B2000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org clean up code Signed-off-by: Hsin-Hsiung Wang --- drivers/mfd/mt6397-core.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c index 77b64bd..acb9812 100644 --- a/drivers/mfd/mt6397-core.c +++ b/drivers/mfd/mt6397-core.c @@ -18,17 +18,17 @@ #include #include #include -#include #include -#include +#include #include +#include #define MT6397_RTC_BASE 0xe000 #define MT6397_RTC_SIZE 0x3e -#define MT6323_CID_CODE 0x23 -#define MT6391_CID_CODE 0x91 -#define MT6397_CID_CODE 0x97 +#define MT6323_CHIP_ID 0x23 +#define MT6391_CHIP_ID 0x91 +#define MT6397_CHIP_ID 0x97 static const struct resource mt6397_rtc_resources[] = { { @@ -298,7 +298,7 @@ static int mt6397_probe(struct platform_device *pdev) return pmic->irq; switch (id & 0xff) { - case MT6323_CID_CODE: + case MT6323_CHIP_ID: pmic->int_con[0] = MT6323_INT_CON0; pmic->int_con[1] = MT6323_INT_CON1; pmic->int_status[0] = MT6323_INT_STATUS0; @@ -312,8 +312,8 @@ static int mt6397_probe(struct platform_device *pdev) 0, pmic->irq_domain); break; - case MT6397_CID_CODE: - case MT6391_CID_CODE: + case MT6391_CHIP_ID: + case MT6397_CHIP_ID: pmic->int_con[0] = MT6397_INT_CON0; pmic->int_con[1] = MT6397_INT_CON1; pmic->int_status[0] = MT6397_INT_STATUS0; -- 1.9.1