[PATCH v2 2/2] mmc: tmio: Replace ifdeffery with IS_ENABLED/CONFIG_IS_ENABLED macros
Simon Glass
sjg at chromium.org
Wed Mar 1 16:01:46 CET 2023
On Tue, 28 Feb 2023 at 14:18, Marek Vasut
<marek.vasut+renesas at mailbox.org> wrote:
>
> Instead of #if and #ifdef, use IS_ENABLED and CONFIG_IS_ENABLED macros.
> This improves build test coverage. The CONFIG_SPL_BUILD must remain an
> ifdef, as CONFIG_SPL_STACK may not always be defined, e.g. in U-Boot
> proper build. No functional change.
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
> ---
> Cc: Jaehoon Chung <jh80.chung at samsung.com>
> Cc: Peng Fan <peng.fan at nxp.com>
> ---
> V2: - Rebase on 1/2
> - Drop DM_REGULATOR check from struct tmio_sd_priv in tmio-common.h
> ---
> drivers/mmc/tmio-common.c | 59 +++++++++++++++++++--------------------
> drivers/mmc/tmio-common.h | 2 --
> 2 files changed, 29 insertions(+), 32 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list