[U-Boot] [PATCH v1 02/10] mmc: fsl_esdhc: annotate endifs
Igor Opaniuk
igor.opaniuk at toradex.com
Mon May 20 13:51:02 UTC 2019
On Mon, May 20, 2019 at 3:46 AM Marcel Ziswiler <marcel at ziswiler.com> wrote:
>
> Annotate endifs to make CONFIG_IS_ENABLED(DM_MMC) or not more obvious.
>
> Signed-off-by: Marcel Ziswiler <marcel at ziswiler.com>
>
> ---
>
> drivers/mmc/fsl_esdhc.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
> index 1b7de74a72..0742cd64e1 100644
> --- a/drivers/mmc/fsl_esdhc.c
> +++ b/drivers/mmc/fsl_esdhc.c
> @@ -1372,7 +1372,7 @@ int fsl_esdhc_mmc_init(bd_t *bis)
> cfg->sdhc_clk = gd->arch.sdhc_clk;
> return fsl_esdhc_initialize(bis, cfg);
> }
> -#endif
> +#endif /* !CONFIG_IS_ENABLED(DM_MMC) */
>
> #ifdef CONFIG_FSL_ESDHC_ADAPTER_IDENT
> void mmc_adapter_card_type_ident(void)
> @@ -1635,7 +1635,7 @@ static const struct dm_mmc_ops fsl_esdhc_ops = {
> .execute_tuning = fsl_esdhc_execute_tuning,
> #endif
> };
> -#endif
> +#endif /* CONFIG_IS_ENABLED(DM_MMC) */
>
> static struct esdhc_soc_data usdhc_imx7d_data = {
> .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING
> --
> 2.21.0
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot
Reviewed-by: Igor Opaniuk <igor.opaniuk at toradex.com>
--
Best regards - Freundliche GrĂ¼sse - Meilleures salutations
Senior Development Engineer,
Igor Opaniuk
Toradex AG
Altsagenstrasse 5 | 6048 Horw/Luzern | Switzerland | T: +41 41 500 48
00 (main line)
More information about the U-Boot
mailing list