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>
This commit is contained in:
Nishad Kamdar 2018-07-27 21:37:37 +05:30 коммит произвёл Greg Kroah-Hartman
Родитель 2f675c91ee
Коммит 910ca496b8
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -36,10 +36,10 @@
#ifndef __ARCH_ARM_MACH_BOARD_H #ifndef __ARCH_ARM_MACH_BOARD_H
#define __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_CD_PIN_EN BIT(0) /* card detection pin is wired */
#define MSDC_WP_PIN_EN (1 << 1) /* write protection pin is wired */ #define MSDC_WP_PIN_EN BIT(1) /* write protection pin is wired */
#define MSDC_RST_PIN_EN (1 << 2) /* emmc reset pin is wired */ #define MSDC_RST_PIN_EN BIT(2) /* emmc reset pin is wired */
#define MSDC_REMOVABLE (1 << 5) /* removable slot */ #define MSDC_REMOVABLE BIT(5) /* removable slot */
#define MSDC_SMPL_RISING (0) #define MSDC_SMPL_RISING (0)
#define MSDC_SMPL_FALLING (1) #define MSDC_SMPL_FALLING (1)