diff mbox

[1/3] mmc: Rename mmc_is_io_op to mmc_is_rw_io_op

Message ID 1448450927-13682-2-git-send-email-carlo@caione.org (mailing list archive)
State New, archived
Headers show

Commit Message

Carlo Caione Nov. 25, 2015, 11:28 a.m. UTC
From: Carlo Caione <carlo@endlessm.com>

This function is used only to filter on sd-io-rw-* operations. Rename it
to reflect this behaviour.

Signed-off-by: Carlo Caione <carlo@endlessm.com>
---
 drivers/mmc/core/core.c     | 2 +-
 drivers/mmc/core/sdio_ops.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 5ae89e4..2e8b24d 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -208,7 +208,7 @@  static void __mmc_start_request(struct mmc_host *host, struct mmc_request *mrq)
 	 * For sdio rw commands we must wait for card busy otherwise some
 	 * sdio devices won't work properly.
 	 */
-	if (mmc_is_io_op(mrq->cmd->opcode) && host->ops->card_busy) {
+	if (mmc_is_rw_io_op(mrq->cmd->opcode) && host->ops->card_busy) {
 		int tries = 500; /* Wait aprox 500ms at maximum */
 
 		while (host->ops->card_busy(host) && --tries)
diff --git a/drivers/mmc/core/sdio_ops.h b/drivers/mmc/core/sdio_ops.h
index 5660c7f..e4b5ceb 100644
--- a/drivers/mmc/core/sdio_ops.h
+++ b/drivers/mmc/core/sdio_ops.h
@@ -21,7 +21,7 @@  int mmc_io_rw_extended(struct mmc_card *card, int write, unsigned fn,
 	unsigned addr, int incr_addr, u8 *buf, unsigned blocks, unsigned blksz);
 int sdio_reset(struct mmc_host *host);
 
-static inline bool mmc_is_io_op(u32 opcode)
+static inline bool mmc_is_rw_io_op(u32 opcode)
 {
 	return opcode == SD_IO_RW_DIRECT || opcode == SD_IO_RW_EXTENDED;
 }