[PATCH v3 03/20] mmc: am654_sdhci: Convert flag fields to BIT macro

Jaehoon Chung jh80.chung at samsung.com
Mon Jan 25 23:19:08 CET 2021


On 1/21/21 9:40 PM, Aswath Govindraju wrote:
> From: Faiz Abbas <faiz_abbas at ti.com>
> 
> Convert the flags field defines to use the BIT() macro.
> 
> Signed-off-by: Faiz Abbas <faiz_abbas at ti.com>
> Signed-off-by: Aswath Govindraju <a-govindraju at ti.com>

Reviewed-by: Jaehoon Chung <jh80.chung at samsung.com>

Best Regards,
Jaehoon Chung

> ---
>  drivers/mmc/am654_sdhci.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c
> index 33f658fba719..e0136dff9711 100644
> --- a/drivers/mmc/am654_sdhci.c
> +++ b/drivers/mmc/am654_sdhci.c
> @@ -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 {
> 



More information about the U-Boot mailing list