From patchwork Mon Oct 5 11:45:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Mutharaju, Prasanna (P.)" X-Patchwork-Id: 7326851 Return-Path: X-Original-To: patchwork-linux-mediatek@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 309429F1D5 for ; Mon, 5 Oct 2015 11:45:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5F2BD20160 for ; Mon, 5 Oct 2015 11:45:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2D0AE20676 for ; Mon, 5 Oct 2015 11:45:42 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zj4D7-0005te-Ml; Mon, 05 Oct 2015 11:45:41 +0000 Received: from mail-am1on0105.outbound.protection.outlook.com ([157.56.112.105] helo=emea01-am1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zj4Cz-0005p7-FH; Mon, 05 Oct 2015 11:45:34 +0000 Received: from AM3PR06MB0902.eurprd06.prod.outlook.com (10.161.34.19) by AM3PR06MB0903.eurprd06.prod.outlook.com (10.161.34.20) with Microsoft SMTP Server (TLS) id 15.1.286.20; Mon, 5 Oct 2015 11:45:08 +0000 Received: from AM3PR06MB0902.eurprd06.prod.outlook.com ([10.161.34.19]) by AM3PR06MB0902.eurprd06.prod.outlook.com ([10.161.34.19]) with mapi id 15.01.0286.019; Mon, 5 Oct 2015 11:45:08 +0000 From: "Mutharaju, Prasanna (P.)" To: "matthias.bgg@gmail.com" , "trivial@kernel.org" , "s.hauer@pengutronix.de" , "treding@nvidia.com" , "flora.fu@mediatek.com" Subject: [PATCH] soc: Fix for clean up pmic driver - trivial Thread-Topic: [PATCH] soc: Fix for clean up pmic driver - trivial Thread-Index: AQHQ/2NIG3aIRRzDYkCq2O62j1rTkg== Date: Mon, 5 Oct 2015 11:45:08 +0000 Message-ID: <20151005114444.GA11494@jci-VirtualBox> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=mkarthi3@visteon.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [74.112.164.114] x-microsoft-exchange-diagnostics: 1; AM3PR06MB0903; 5:tc/FuszUxUX2LRLdgzQmq8OYoh7BtbubOKHEHHzxH408yeDWjQwh92WkxknplEqgmIQCUHcXdZwZhQCtVCHjUAnOmg8EMuvO7lalLekoLpdIMtkkejnWrWZRoF9m6J1MfIi8Rgiay2W6hR9p71en5A==; 24:8PsPPRz25/YCF3/cyvmuHvv2KcfU3AFsr7tgQV0VGO0wrQVEHo0b5rcXYI0IDu6PGM34AY15+gDRrBeTojlna4vyRwm3pQdgupo6ec75Tos=; 20:GbQALdD9sfgwTmWhMCPDwJ/zDYyUPA8zC6ZtTLzIjNyncZ80+yrok2YBGL43AwTSgGV6GtUfWheKhsiT4RG7AA== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM3PR06MB0903; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(3002001); SRVR:AM3PR06MB0903; BCL:0; PCL:0; RULEID:; SRVR:AM3PR06MB0903; x-forefront-prvs: 07200C0526 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(106356001)(5001830100001)(5004730100002)(86362001)(5001860100001)(19580405001)(54356999)(33656002)(50986999)(4001540100001)(68736005)(5001770100001)(575784001)(19580395003)(101416001)(77096005)(97736004)(62966003)(102836002)(81156007)(77156002)(10400500002)(229853001)(64706001)(46102003)(66066001)(105586002)(5007970100001)(11100500001)(2501003)(5008740100001)(106116001)(122556002)(5001960100002)(2201001)(5002640100001)(40100003)(2900100001)(33716001)(189998001)(92566002)(2860100001)(87936001); DIR:OUT; SFP:1102; SCL:1; SRVR:AM3PR06MB0903; H:AM3PR06MB0902.eurprd06.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:; received-spf: None (protection.outlook.com: visteon.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-ID: MIME-Version: 1.0 X-OriginatorOrg: visteon.com X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Oct 2015 11:45:08.2228 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7a147aaf-01ec-498c-80a1-e34a8c63c548 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR06MB0903 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151005_044533_837961_B58EA8B3 X-CRM114-Status: UNSURE ( 6.70 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "linux-mediatek@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_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 From: Prasanna Karthik Prefer using the BIT macro reported by checkpatch Signed-off-by: Prasanna Karthik --- drivers/soc/mediatek/mtk-pmic-wrap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c index f432291..628a919 100644 --- a/drivers/soc/mediatek/mtk-pmic-wrap.c +++ b/drivers/soc/mediatek/mtk-pmic-wrap.c @@ -35,8 +35,8 @@ #define PWRAP_GET_WACS_RDATA(x) (((x) >> 0) & 0x0000ffff) #define PWRAP_GET_WACS_FSM(x) (((x) >> 16) & 0x00000007) #define PWRAP_GET_WACS_REQ(x) (((x) >> 19) & 0x00000001) -#define PWRAP_STATE_SYNC_IDLE0 (1 << 20) -#define PWRAP_STATE_INIT_DONE0 (1 << 21) +#define PWRAP_STATE_SYNC_IDLE0 BIT(20) +#define PWRAP_STATE_INIT_DONE0 BIT(21) /* macro for WACS FSM */ #define PWRAP_WACS_FSM_IDLE 0x00 @@ -52,7 +52,7 @@ #define PWRAP_DEW_WRITE_TEST_VAL 0xa55a /* macro for manual command */ -#define PWRAP_MAN_CMD_SPI_WRITE (1 << 13) +#define PWRAP_MAN_CMD_SPI_WRITE BIT(13) #define PWRAP_MAN_CMD_OP_CSH (0x0 << 8) #define PWRAP_MAN_CMD_OP_CSL (0x1 << 8) #define PWRAP_MAN_CMD_OP_CK (0x2 << 8)