mmc: tmio: Replace ifdeffery with IS_ENABLED/CONFIG_IS_ENABLED macros
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Tue, 28 Feb 2023 21:18:13 +0000 (22:18 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 7 Apr 2023 15:13:27 +0000 (17:13 +0200)
commit2769ddc99fd089afb4c150b027ff4217d0fe098e
treec815793aa37ec5da095b7ccc52ecd82afc6d23fe
parentdd073c03933603907ad45428c227754d694168cf
mmc: tmio: Replace ifdeffery with IS_ENABLED/CONFIG_IS_ENABLED macros

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@mailbox.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/tmio-common.c
drivers/mmc/tmio-common.h