From: Carlo Caione <carlo@xxxxxxxxxxxx> This function is used only to filter on sd-io-rw-* operations. Rename it to reflect this behaviour. Signed-off-by: Carlo Caione <carlo@xxxxxxxxxxxx> --- drivers/mmc/core/core.c | 2 +- drivers/mmc/core/sdio_ops.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html