Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4454299imm; Mon, 30 Jul 2018 15:12:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfapcgOcirYdSC9n0+13Ztv+uwSwtCECAo569rCUH1cq/wzqLEBUSwjyW0v0/H4L8Vdu/4o X-Received: by 2002:a62:9c17:: with SMTP id f23-v6mr19652215pfe.209.1532988746073; Mon, 30 Jul 2018 15:12:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532988746; cv=none; d=google.com; s=arc-20160816; b=Y5MWRzKnlGeFKysyoLje2589p/NBVlCGLLORm1f2inxJ6o/M2FucwQeiUNi4YG2TLj /uti3A3lDS/1H2r2ezAKHFb1Lo2wiOjveSwS0vort2Ad5UuWkmn+A92AO7gdme7ysmMd DaVdBBNjSoJ+FfqlJMKUuMBa2Zgx3igNpuIZX0siS6OV7WElm78q9QQFvmrxm4trBeYi AupfqJQSUOlThlGPxjBim4ciUgl8J5d202KDWEjW0ABBx569JggjYhKINwsp5wJmrI8u jNpuEqBj3OoVBZtLEcuBvLLQHgotJp3u/EeIsIfmhsnxwwJBF4Rb563mrq4eTyPvkSoW ynEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:references :in-reply-to:subject:cc:date:to:from:arc-authentication-results; bh=CnkB2phdjY0SnHamz/3D4q03I948Rnolg8HXSV067I8=; b=d9dtbjiNQY/7rWOmiGQK26iP9LTnlZAyD3RPywWkTV0aBX8Vdjl+k/ZY+ZPkjnhnRC cI06LiLZ7epviVWBjzk7o+Quc/8lYv9JCOCL5P2/UiB3cu6pB+zBV3r+4Juus7JLOymS oxT7JV2TjZi25mbFJVP4RUKIqLP+X3AK0uFl5rJnu9SiCglg9eApyJvnZi2PdfhcXXjx OMuZsH4Pe6JaSUQV2h5XuVJXElNwugDCIpcOKDErG71vEuBokeXVBX5Tb++P+v+rz79c nb6QNS56I6+eVdg92/SpYUV3j3amkjCWmH+C25N+t4hE1jwS23oKyKhndj0juotFjWPk IbQg== 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 f62-v6si13074315pfa.73.2018.07.30.15.12.10; Mon, 30 Jul 2018 15:12:26 -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 S1731913AbeG3Xr7 (ORCPT + 99 others); Mon, 30 Jul 2018 19:47:59 -0400 Received: from mx2.suse.de ([195.135.220.15]:43868 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726622AbeG3Xr7 (ORCPT ); Mon, 30 Jul 2018 19:47:59 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 61F5AAFC2; Mon, 30 Jul 2018 22:10:55 +0000 (UTC) From: NeilBrown To: Nishad Kamdar , Greg Kroah-Hartman Date: Tue, 31 Jul 2018 08:10:43 +1000 Cc: Christian =?utf-8?Q?L=C3=BCtke-Stetzkamp?= , John Crispin , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: mt7621-mmc: Use BIT macro instead of explicit shifting in board.h In-Reply-To: <20180727160733.GA10467@nishad> References: <20180727160733.GA10467@nishad> Message-ID: <87muu8l6ho.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, Jul 27 2018, Nishad Kamdar wrote: > Replace explicit shifting with BIT macro in board.h. > Issue found by checkpatch. > > Signed-off-by: Nishad Kamdar Reviewed-by: NeilBrown Thanks, NeilBrown > --- > 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 >=20=20 > -#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 */ >=20=20 > #define MSDC_SMPL_RISING (0) > #define MSDC_SMPL_FALLING (1) > --=20 > 2.17.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAltfjOYACgkQOeye3VZi gbkm9A//R2oeRHsq/v8i7dWZZkVkpJ2ghbJ6mpgG5tEj1r+Pyfx19weKLmriqP09 VR00XPeiM8BXFxWZ0f0BvduyDf7UQqgqIWz2FVV/2l2eLWIfnKgJt8DB8OIqm+oB c/SPDAEI5eA9TTQF+U8dl0NPY92SP8WGhjHLK8YQ94BLVXpDEvX6vkB/NYlobJzG qSlm2WQ5W4LOGQuLMOErELB1AXGNdHWgxUm2YdiuUjqtuyE2nmUpOUQbLDmOkAEr sZy5LPIzh4pzCfNnJxBIFFHtpSOW/cKvxSWzBjqiexjT7Q+4LGjsIZRVfJ47RWwk sUlXb/CZKFxlUxAtgCgG4aYi1Jmns+XW+vVCH2P9WXZx55RVO7RJaXUQUzteSoFk RzZbULDNxkk8EY8Rt5yCufIaJYu+vOHI/Q3S7CFfUuUqCwcOeT+FGzsNmxWg07LX tFwzWI96hdsBGYwyyICVcdeyS18zcE9/hpXEfsVzAmHVETysJGuoC9gqIFOBBQ7a cuuCnPb+8+IXKJhgmhSvhuFOyxr2znX4f5rmGo+SMnJ3sBzJlAkxDxWwQiBCGxSD e5YkZg1zGnnEJ5wQpquBqjucIwANJHapuGrH2Q8IWPkg0YFgMIisnSEACbpxjXA3 EA0rgROxlIwpIF7g6Fyx+e6SS0TIRBGWUxUJdZCObTlDdkR4KSo= =s3CJ -----END PGP SIGNATURE----- --=-=-=--