From eceef9a3f4459e84f214a83ac4c9905baca73832 Mon Sep 17 00:00:00 2001 From: Rehas Sachdeva Date: Tue, 20 Sep 2016 16:46:05 +0530 Subject: [PATCH] staging: rts5208: Use BIT(x) macro Replaces left shift operation (1 << x) by BIT(x). Issue found by checkpatch. Signed-off-by: Rehas Sachdeva Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rts5208/rtsx_chip.h | 30 ++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/staging/rts5208/rtsx_chip.h b/drivers/staging/rts5208/rtsx_chip.h index 79d1df6ff873..132c2e6ca59e 100644 --- a/drivers/staging/rts5208/rtsx_chip.h +++ b/drivers/staging/rts5208/rtsx_chip.h @@ -266,22 +266,22 @@ struct sense_data_t { #define TRIG_DMA (0x01 << 31) /* Bus interrupt pending register */ -#define CMD_DONE_INT (1 << 31) -#define DATA_DONE_INT (1 << 30) -#define TRANS_OK_INT (1 << 29) -#define TRANS_FAIL_INT (1 << 28) -#define XD_INT (1 << 27) -#define MS_INT (1 << 26) -#define SD_INT (1 << 25) -#define GPIO0_INT (1 << 24) -#define OC_INT (1 << 23) -#define SD_WRITE_PROTECT (1 << 19) -#define XD_EXIST (1 << 18) -#define MS_EXIST (1 << 17) -#define SD_EXIST (1 << 16) +#define CMD_DONE_INT BIT(31) +#define DATA_DONE_INT BIT(30) +#define TRANS_OK_INT BIT(29) +#define TRANS_FAIL_INT BIT(28) +#define XD_INT BIT(27) +#define MS_INT BIT(26) +#define SD_INT BIT(25) +#define GPIO0_INT BIT(24) +#define OC_INT BIT(23) +#define SD_WRITE_PROTECT BIT(19) +#define XD_EXIST BIT(18) +#define MS_EXIST BIT(17) +#define SD_EXIST BIT(16) #define DELINK_INT GPIO0_INT -#define MS_OC_INT (1 << 23) -#define SD_OC_INT (1 << 22) +#define MS_OC_INT BIT(23) +#define SD_OC_INT BIT(22) #define CARD_INT (XD_INT | MS_INT | SD_INT) #define NEED_COMPLETE_INT (DATA_DONE_INT | TRANS_OK_INT | TRANS_FAIL_INT) -- 2.20.1