From: NeilBrown <neil@brown.name>
To: Nishad Kamdar <nishadkamdar@gmail.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "Christian Lütke-Stetzkamp" <christian@lkamp.de>,
"John Crispin" <blogic@openwrt.org>,
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
Date: Tue, 31 Jul 2018 08:10:43 +1000 [thread overview]
Message-ID: <87muu8l6ho.fsf@notabene.neil.brown.name> (raw)
In-Reply-To: <20180727160733.GA10467@nishad>
[-- Attachment #1: Type: text/plain, Size: 1402 bytes --]
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 <nishadkamdar@gmail.com>
Reviewed-by: NeilBrown <neil@brown.name>
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
>
> -#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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
prev parent reply other threads:[~2018-07-30 22:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-27 16:07 [PATCH] staging: mt7621-mmc: Use BIT macro instead of explicit shifting in board.h Nishad Kamdar
2018-07-30 22:10 ` NeilBrown [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87muu8l6ho.fsf@notabene.neil.brown.name \
--to=neil@brown.name \
--cc=blogic@openwrt.org \
--cc=christian@lkamp.de \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nishadkamdar@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox