mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-03 00:54:09 +08:00
mtd: rawnand: qcom: Use the BIT() macro
Fix the following checkpatch warning: "CHECK: Prefer using the BIT macro" Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Acked-by: Manivannan Sadhasivam <mani@kernel.org> Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org> Link: https://lore.kernel.org/linux-mtd/20230716144612.32132-2-miquel.raynal@bootlin.com
This commit is contained in:
parent
6680d8b679
commit
a6de66607a
@ -123,8 +123,8 @@
|
||||
/* NAND_ERASED_CW_DETECT_CFG bits */
|
||||
#define ERASED_CW_ECC_MASK 1
|
||||
#define AUTO_DETECT_RES 0
|
||||
#define MASK_ECC (1 << ERASED_CW_ECC_MASK)
|
||||
#define RESET_ERASED_DET (1 << AUTO_DETECT_RES)
|
||||
#define MASK_ECC BIT(ERASED_CW_ECC_MASK)
|
||||
#define RESET_ERASED_DET BIT(AUTO_DETECT_RES)
|
||||
#define ACTIVE_ERASED_DET (0 << AUTO_DETECT_RES)
|
||||
#define CLR_ERASED_PAGE_DET (RESET_ERASED_DET | MASK_ECC)
|
||||
#define SET_ERASED_PAGE_DET (ACTIVE_ERASED_DET | MASK_ECC)
|
||||
|
Loading…
Reference in New Issue
Block a user