diff options
author | Nishad Kamdar <nishadkamdar@gmail.com> | 2018-07-27 21:37:37 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-29 10:08:02 +0200 |
commit | 910ca496b8dceac588adb85d81a9351f1cdf63d1 (patch) | |
tree | d6b6229ed9e5757e56242e47139525766bf44674 /drivers/staging/mt7621-mmc | |
parent | 2f675c91eeb7f59d649825f931184becdc94b905 (diff) |
staging: mt7621-mmc: Use BIT macro instead of explicit shifting in board.h
Replace explicit shifting with BIT macro in board.h.
Issue found by checkpatch.
Signed-off-by: Nishad Kamdar <nishadkamdar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/mt7621-mmc')
-rw-r--r-- | drivers/staging/mt7621-mmc/board.h | 8 |
1 files 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) |