]> asedeno.scripts.mit.edu Git - linux.git/commit
mmc: core: Convert mmc_align_data_size() into an SDIO specific function
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 13 Feb 2019 19:03:30 +0000 (20:03 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Feb 2019 16:20:21 +0000 (17:20 +0100)
commiteae343c290f78916b254972e85e0b419e55618f1
tree06535e95538295dfe00d90ddae50adb8a371a728
parent9d2d24302e615e984034d2f60a4da739de6bd637
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>
drivers/mmc/core/core.c
drivers/mmc/core/sdio_io.c
drivers/mmc/core/sdio_ops.h