]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: am654_sdhci: Convert flag fields to BIT macro
authorFaiz Abbas <faiz_abbas@ti.com>
Thu, 4 Feb 2021 09:40:48 +0000 (15:10 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Thu, 4 Feb 2021 15:07:57 +0000 (20:37 +0530)
Convert the flags field defines to use the BIT() macro.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/am654_sdhci.c

index 33f658fba7197280c7951e56a986e487dd09c828..e0136dff971163cd4ae759e043ca792ae18bb361 100644 (file)
@@ -80,10 +80,10 @@ struct am654_sdhci_plat {
        u32 drv_strength;
        u32 strb_sel;
        u32 flags;
-#define DLL_PRESENT    (1 << 0)
-#define IOMUX_PRESENT  (1 << 1)
-#define FREQSEL_2_BIT  (1 << 2)
-#define STRBSEL_4_BIT  (1 << 3)
+#define DLL_PRESENT    BIT(0)
+#define IOMUX_PRESENT  BIT(1)
+#define FREQSEL_2_BIT  BIT(2)
+#define STRBSEL_4_BIT  BIT(3)
 };
 
 struct timing_data {