diff options
author | Steffen Trumtrar <s.trumtrar@pengutronix.de> | 2024-03-18 11:18:26 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2024-03-18 13:17:07 +0100 |
commit | aaafc8f241e2ba8c6d20cfa31951514742d9c817 (patch) | |
tree | e4331ff3897c6c542dcfc3fcc37cd4f6b8728bbd | |
parent | ffa59e16bb9698d084c99e25f47efbcd383bfb1d (diff) | |
download | barebox-aaafc8f241e2ba8c6d20cfa31951514742d9c817.tar.gz barebox-aaafc8f241e2ba8c6d20cfa31951514742d9c817.tar.xz |
mci: mci-core: replace value with define
Use the newly introduced define for High Speed timing mode instead of
just '1'.
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
-rw-r--r-- | drivers/mci/mci-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c index 7cc726f21c..414bcf6f06 100644 --- a/drivers/mci/mci-core.c +++ b/drivers/mci/mci-core.c @@ -683,7 +683,7 @@ static int mmc_change_freq(struct mci *mci) cardtype = mci->ext_csd[EXT_CSD_DEVICE_TYPE] & EXT_CSD_CARD_TYPE_MASK; - err = mci_switch(mci, EXT_CSD_HS_TIMING, 1); + err = mci_switch(mci, EXT_CSD_HS_TIMING, EXT_CSD_TIMING_HS); if (err) { dev_dbg(&mci->dev, "MMC frequency changing failed: %d\n", err); |