Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp975783imm; Fri, 27 Jul 2018 09:09:21 -0700 (PDT) X-Google-Smtp-Source: AAOMgpduFpZqBsDEEiktoOj6i2vd6vT8ninunEDw7kpARI7ua8juclJwntlbyjyB8EYlRd3wmgbR X-Received: by 2002:a65:4849:: with SMTP id i9-v6mr6717380pgs.350.1532707761348; Fri, 27 Jul 2018 09:09:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532707761; cv=none; d=google.com; s=arc-20160816; b=r7dDOXad4NHVauoiNKAQVdK9RmPVYIa4nF86Inch9/4ksmcaZ/zfkL3C7+rOWg64Q9 vMAAC2spo3i2N/Fx0MM7cRV0hSSIA5I2HzKaG/zvZkGf9V6ds2huV4KmOTT47E+Hd5uH pgNwpzIZ9RxK3cErjZnQUDiSVzUrb5IAf0dGLzjz4gftkZDfmL7nmbE0yAW2x0Ecdbz6 aa1YKUIaYaZOrMu9vT32Q16Is6Fown9XdXX4RX/TNCLV7Uof9B5TrGoJBqk9bN6eOAeo 5RzernD7ClORkRrlm/LHxkpmRnJJAOCl+KdwoC7zI5cX/trDP/lS0xgKHgtpGbWaZnIU DQkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=GovrtAOVCB7hdXVG2gd1tnYGWA0NS17fl1VKLdAxx7g=; b=e3/Y4o4tBJFZFFGe9P8B59IQCshyBG4wn9igRv0c9vgJ+OXIE8/oN1J3WYfqZrIY3+ YiFaxqjzqrQacjm1sxGC+WWyiM15VQ53WCOutOuC7UQvGv+6kgozRMyKnKE6g+T7yPvs alhOxjUHPdWnENeoFcVlOCis5pyzNtCyCb7CRsjzT1TTsVBlBUQ94sO9Kn0S+OuMlXIW wuH9F2Kz58HYrXYePdE/B6CaDjJu9PnKu70igGChMAMVvyrCvm+PuvRThlFCIxznLrDf 6C+4ssXU9WLh1vtSgjh1B3YEuB/IKz2h2Mam6clpWAFGey96YL+tYDnawgEeI14aMWKh G7Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ea2BrteD; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 68-v6si3734088pla.505.2018.07.27.09.09.05; Fri, 27 Jul 2018 09:09:21 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ea2BrteD; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388735AbeG0RaR (ORCPT + 99 others); Fri, 27 Jul 2018 13:30:17 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:43345 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388156AbeG0RaR (ORCPT ); Fri, 27 Jul 2018 13:30:17 -0400 Received: by mail-pl0-f67.google.com with SMTP id x6-v6so2497450plv.10 for ; Fri, 27 Jul 2018 09:07:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=GovrtAOVCB7hdXVG2gd1tnYGWA0NS17fl1VKLdAxx7g=; b=ea2BrteDsRBh89DbaRwlbMuexlfhhqqfHC/h/s//9gwHzRUUJRjQ0fwy0Cw1OzNeyO 3nWlwkcuy+1gHKG07FwTXEBaPalOGiERHMSyP953cocvEBUYYdTu+59KLUTBmXcDoM3g QzxYdeDltBagCYSBrHZGwanscpV0x07QuptgY2ucOREzhT4o07956i+oSVcafhZcjRiO KSuC6U1plk7s5UOlk+sRyGEtrulkNnvDQ81R48msLmb0t3IDtWLVQJnkDsS7sL16owl2 X0NfklCEiE/H20AycjjPQH0asOcLhdy3V2hVgEMFbTDFI8BEaeXyQSPxQI7GbY5ucID2 bSQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=GovrtAOVCB7hdXVG2gd1tnYGWA0NS17fl1VKLdAxx7g=; b=CBWwTPnzZcUQIsdf79OHQtFsUgIyZFqgaj66q4GOdb/kIBBd9GeJiwOzIE0GUKIPNL xGEaOjyyKf3vHSaHozBJxJpJRd0Jj7My/MFCEJkEDVTG1bHXakfNBr1whqaGg7YYysia b5CHOHW+V+Ixn/kNIC4Fw/rtxlIYP1qJnFgzHDedGH1WQhP0Xob2EmB9Wv0qYLSvY8RP 8sDK0GyX+hosDBGGvuLmXG+hoJ0fV2wPxeA92o2OmdQv/Rxw5rbZHNVTmEdmxdr7W3LX pnbQcAJJumElwK0INxULJBDq3jGfX+6+NIEDTOXV7Q+GOOWD8XHRRARIvKSiJKLwvbpR Lfaw== X-Gm-Message-State: AOUpUlHqXy+1jBF9mGX8inoHh+BLxUKgkv9Qoh9I44mOQFCnlgM1kG5u h3a16ps63+rsLaI85NpOMjA= X-Received: by 2002:a17:902:b7c5:: with SMTP id v5-v6mr1134870plz.30.1532707663711; Fri, 27 Jul 2018 09:07:43 -0700 (PDT) Received: from nishad ([106.51.27.228]) by smtp.gmail.com with ESMTPSA id 137-v6sm2761055pfu.121.2018.07.27.09.07.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Jul 2018 09:07:43 -0700 (PDT) Date: Fri, 27 Jul 2018 21:37:37 +0530 From: Nishad Kamdar To: Greg Kroah-Hartman Cc: Christian =?utf-8?Q?L=C3=BCtke-Stetzkamp?= , NeilBrown , John Crispin , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: mt7621-mmc: Use BIT macro instead of explicit shifting in board.h Message-ID: <20180727160733.GA10467@nishad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace explicit shifting with BIT macro in board.h. Issue found by checkpatch. Signed-off-by: Nishad Kamdar --- drivers/staging/mt7621-mmc/board.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/mt7621-mmc/board.h b/drivers/staging/mt7621-mmc/board.h index a7d82f321b00..983791ee308d 100644 --- a/drivers/staging/mt7621-mmc/board.h +++ b/drivers/staging/mt7621-mmc/board.h @@ -36,10 +36,10 @@ #ifndef __ARCH_ARM_MACH_BOARD_H #define __ARCH_ARM_MACH_BOARD_H -#define MSDC_CD_PIN_EN (1 << 0) /* card detection pin is wired */ -#define MSDC_WP_PIN_EN (1 << 1) /* write protection pin is wired */ -#define MSDC_RST_PIN_EN (1 << 2) /* emmc reset pin is wired */ -#define MSDC_REMOVABLE (1 << 5) /* removable slot */ +#define MSDC_CD_PIN_EN BIT(0) /* card detection pin is wired */ +#define MSDC_WP_PIN_EN BIT(1) /* write protection pin is wired */ +#define MSDC_RST_PIN_EN BIT(2) /* emmc reset pin is wired */ +#define MSDC_REMOVABLE BIT(5) /* removable slot */ #define MSDC_SMPL_RISING (0) #define MSDC_SMPL_FALLING (1) -- 2.17.1