mmc: meson-gx: use wrapper to avoid accessing internal vars
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Kevin Hilman <khilman@baylibre.com> Link: https://lore.kernel.org/r/20200831102324.12566-1-wsa+renesas@sang-engineering.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
9381118fcf
commit
e0c29be62c
|
@ -521,7 +521,7 @@ static int meson_mmc_resampling_tuning(struct mmc_host *mmc, u32 opcode)
|
|||
val |= ADJUST_ADJ_EN;
|
||||
writel(val, host->regs + host->data->adjust);
|
||||
|
||||
if (mmc->doing_retune)
|
||||
if (mmc_doing_retune(mmc))
|
||||
dly = FIELD_GET(ADJUST_ADJ_DELAY_MASK, val) + 1;
|
||||
else
|
||||
dly = 0;
|
||||
|
|
Loading…
Reference in New Issue