Skip to content

Commit a6de666

Browse files
committed
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
1 parent 6680d8b commit a6de666

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/mtd/nand/raw/qcom_nandc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@
123123
/* NAND_ERASED_CW_DETECT_CFG bits */
124124
#define ERASED_CW_ECC_MASK 1
125125
#define AUTO_DETECT_RES 0
126-
#define MASK_ECC (1 << ERASED_CW_ECC_MASK)
127-
#define RESET_ERASED_DET (1 << AUTO_DETECT_RES)
126+
#define MASK_ECC BIT(ERASED_CW_ECC_MASK)
127+
#define RESET_ERASED_DET BIT(AUTO_DETECT_RES)
128128
#define ACTIVE_ERASED_DET (0 << AUTO_DETECT_RES)
129129
#define CLR_ERASED_PAGE_DET (RESET_ERASED_DET | MASK_ECC)
130130
#define SET_ERASED_PAGE_DET (ACTIVE_ERASED_DET | MASK_ECC)

0 commit comments

Comments
 (0)