diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2014-01-08 09:06:08 -0500 |
---|---|---|
committer | Chris Ball <chris@printf.net> | 2014-02-23 10:40:26 -0500 |
commit | 1d4d77444bf4212c44585146a2b353ca24c815f9 (patch) | |
tree | eae3b360e9dc5de2332681a6d3b5b1f25aaee1b7 /drivers/mmc/core | |
parent | 68eb80e06bfa06035d0304686124974780308fae (diff) |
mmc: core: Rename cmd_timeout_ms to busy_timeout
To better reflect that the cmd_timeout_ms is directly related to the
busy detection timeout, let's rename it.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <chris@printf.net>
Diffstat (limited to 'drivers/mmc/core')
-rw-r--r-- | drivers/mmc/core/core.c | 2 | ||||
-rw-r--r-- | drivers/mmc/core/mmc_ops.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index d9c1efa2ce15..1935812e4215 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c | |||
@@ -1933,7 +1933,7 @@ static int mmc_do_erase(struct mmc_card *card, unsigned int from, | |||
1933 | cmd.opcode = MMC_ERASE; | 1933 | cmd.opcode = MMC_ERASE; |
1934 | cmd.arg = arg; | 1934 | cmd.arg = arg; |
1935 | cmd.flags = MMC_RSP_SPI_R1B | MMC_RSP_R1B | MMC_CMD_AC; | 1935 | cmd.flags = MMC_RSP_SPI_R1B | MMC_RSP_R1B | MMC_CMD_AC; |
1936 | cmd.cmd_timeout_ms = mmc_erase_timeout(card, arg, qty); | 1936 | cmd.busy_timeout = mmc_erase_timeout(card, arg, qty); |
1937 | err = mmc_wait_for_cmd(card->host, &cmd, 0); | 1937 | err = mmc_wait_for_cmd(card->host, &cmd, 0); |
1938 | if (err) { | 1938 | if (err) { |
1939 | pr_err("mmc_erase: erase error %d, status %#x\n", | 1939 | pr_err("mmc_erase: erase error %d, status %#x\n", |
diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c index e5b5eeb548d1..3377bbfc3585 100644 --- a/drivers/mmc/core/mmc_ops.c +++ b/drivers/mmc/core/mmc_ops.c | |||
@@ -432,7 +432,7 @@ int __mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value, | |||
432 | cmd.flags |= MMC_RSP_SPI_R1 | MMC_RSP_R1; | 432 | cmd.flags |= MMC_RSP_SPI_R1 | MMC_RSP_R1; |
433 | 433 | ||
434 | 434 | ||
435 | cmd.cmd_timeout_ms = timeout_ms; | 435 | cmd.busy_timeout = timeout_ms; |
436 | if (index == EXT_CSD_SANITIZE_START) | 436 | if (index == EXT_CSD_SANITIZE_START) |
437 | cmd.sanitize_busy = true; | 437 | cmd.sanitize_busy = true; |
438 | 438 | ||