summaryrefslogtreecommitdiff
path: root/drivers/mmc/core/sdio_ops.h
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2019-02-13 20:03:30 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2019-02-25 17:20:21 +0100
commiteae343c290f78916b254972e85e0b419e55618f1 (patch)
tree06535e95538295dfe00d90ddae50adb8a371a728 /drivers/mmc/core/sdio_ops.h
parent9d2d24302e615e984034d2f60a4da739de6bd637 (diff)
mmc: core: Convert mmc_align_data_size() into an SDIO specific function
The only user of mmc_align_data_size() is sdio_align_size(), which is called from SDIO func drivers to let them distinguish, how to optimally allocate data buffers. Let's move mmc_align_data_size() close to the SDIO code as to make it static, rename it to _sdio_align_size() and simplify its definition, all with the purpose of clarifying that this is SDIO specific. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Avri Altman <avri.altman@wdc.com>
Diffstat (limited to 'drivers/mmc/core/sdio_ops.h')
-rw-r--r--drivers/mmc/core/sdio_ops.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mmc/core/sdio_ops.h b/drivers/mmc/core/sdio_ops.h
index 96945cafbf0b..1f6d0447ea0f 100644
--- a/drivers/mmc/core/sdio_ops.h
+++ b/drivers/mmc/core/sdio_ops.h
@@ -25,7 +25,6 @@ int mmc_io_rw_direct(struct mmc_card *card, int write, unsigned fn,
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);
-unsigned int mmc_align_data_size(struct mmc_card *card, unsigned int sz);
void sdio_irq_work(struct work_struct *work);
static inline bool sdio_is_io_busy(u32 opcode, u32 arg)