mmc: cv1800b_sdhci: Fix possible warning with MMC_SUPPORTS_TUNING=n
authorTom Rini <trini@konsulko.com>
Fri, 3 Oct 2025 20:39:25 +0000 (14:39 -0600)
committerPeng Fan <peng.fan@nxp.com>
Fri, 10 Oct 2025 03:06:00 +0000 (11:06 +0800)
commit63bce690478169758484881afeea45ac6a812d00
tree593f68e424ef492fde8ca5972e373a0b55b280b3
parent2a846e04c62297a909fc2828d9e0fe87dc0269cf
mmc: cv1800b_sdhci: Fix possible warning with MMC_SUPPORTS_TUNING=n

The function cv1800b_set_tap_delay is only called by
cv1800b_execute_tuning. The latter is where we currently have the #if
guard around MMC_SUPPORTS_TUNING, and so with the option disabled we
have an unused function warning. Move the guard to cover both functions.

Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/cv1800b_sdhci.c