@@ -34,10 +34,10 @@
#define SD_WRITE_EXTR_SINGLE 49 /* adtc [31:0] R1 */
/* OCR bit definitions */
-#define SD_OCR_S18R (1 << 24) /* 1.8V switching request */
+#define SD_OCR_S18R BIT(24) /* 1.8V switching request */
#define SD_ROCR_S18A SD_OCR_S18R /* 1.8V switching accepted by card */
-#define SD_OCR_XPC (1 << 28) /* SDXC power control */
-#define SD_OCR_CCS (1 << 30) /* Card Capacity Status */
+#define SD_OCR_XPC BIT(28) /* SDXC power control */
+#define SD_OCR_CCS BIT(30) /* Card Capacity Status */
/*
* SD_SWITCH argument format:
Use the BIT(n) macro instead of (1<<n), no functional change. Regex 's@(1 \?<< \?\([0-9A-Z_]\+\))@BIT(\1)' . Signed-off-by: Marek Vasut <marex@denx.de> --- Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Avri Altman <avri.altman@wdc.com> Cc: Bo Liu <liubo03@inspur.com> Cc: Deren Wu <deren.wu@mediatek.com> Cc: Philipp Zabel <p.zabel@pengutronix.de> Cc: Pierre Ossman <pierre@ossman.eu> Cc: Russell King <linux@armlinux.org.uk> Cc: Ulf Hansson <ulf.hansson@linaro.org> Cc: Yang Yingliang <yangyingliang@huawei.com> Cc: linux-mmc@vger.kernel.org --- include/linux/mmc/sd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)