Skip to content

Commit

Permalink
mmc: atmel-mci: change atmci_start_command to atmci_send_command
Browse files Browse the repository at this point in the history
Rename atmci_start_command() to atmci_send_command() which is more
appropriate; atmci_start_command suggests we're sending a start command.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
Ludovic Desroches authored and Chris Ball committed Oct 26, 2011
1 parent 796211b commit 11d1488
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/mmc/host/atmel-mci.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ static u32 atmci_prepare_command(struct mmc_host *mmc,
return cmdr;
}

static void atmci_start_command(struct atmel_mci *host,
static void atmci_send_command(struct atmel_mci *host,
struct mmc_command *cmd, u32 cmd_flags)
{
WARN_ON(host->cmd);
Expand All @@ -581,7 +581,7 @@ static void atmci_start_command(struct atmel_mci *host,

static void atmci_send_stop_cmd(struct atmel_mci *host, struct mmc_data *data)
{
atmci_start_command(host, data->stop, host->stop_cmdr);
atmci_send_command(host, data->stop, host->stop_cmdr);
atmci_writel(host, ATMCI_IER, ATMCI_CMDRDY);
}

Expand Down Expand Up @@ -1003,7 +1003,7 @@ static void atmci_start_request(struct atmel_mci *host,
iflags |= ATMCI_CMDRDY;
cmd = mrq->cmd;
cmdflags = atmci_prepare_command(slot->mmc, cmd);
atmci_start_command(host, cmd, cmdflags);
atmci_send_command(host, cmd, cmdflags);

if (data)
host->submit_data(host, data);
Expand Down

0 comments on commit 11d1488

Please sign in to comment.