summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci.c
diff options
context:
space:
mode:
authorSascha Hauer2013-01-21 12:02:27 +0100
committerChris Ball2013-02-24 20:37:02 +0100
commit7bc088d38f92f58df97e1cd9a8430331ee5491bb (patch)
tree21e778f5fc8a110eb6d7ce2e1c5b0248cdd4c147 /drivers/mmc/host/sdhci.c
parentmmc: sdhci-esdhc-imx: Auto CMD23 support for usdhc (diff)
downloadkernel-qcow2-linux-7bc088d38f92f58df97e1cd9a8430331ee5491bb.tar.gz
kernel-qcow2-linux-7bc088d38f92f58df97e1cd9a8430331ee5491bb.tar.xz
kernel-qcow2-linux-7bc088d38f92f58df97e1cd9a8430331ee5491bb.zip
mmc: sdhci: rename platform_8bit_width to platform_bus_width
The 8bit in the function name is misleading. When set, it will be used to set the bus width, regardless of whether 8bit or another bus width is requested, so change the function name to platform_bus_width. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Tested-by: Dirk Behme <dirk.behme@de.bosch.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/sdhci.c')
-rw-r--r--drivers/mmc/host/sdhci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 336ab06aeb2f..3bb9b88772cf 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -1395,11 +1395,11 @@ static void sdhci_do_set_ios(struct sdhci_host *host, struct mmc_ios *ios)
/*
* If your platform has 8-bit width support but is not a v3 controller,
* or if it requires special setup code, you should implement that in
- * platform_8bit_width().
+ * platform_bus_width().
*/
- if (host->ops->platform_8bit_width)
- host->ops->platform_8bit_width(host, ios->bus_width);
- else {
+ if (host->ops->platform_bus_width) {
+ host->ops->platform_bus_width(host, ios->bus_width);
+ } else {
ctrl = sdhci_readb(host, SDHCI_HOST_CONTROL);
if (ios->bus_width == MMC_BUS_WIDTH_8) {
ctrl &= ~SDHCI_CTRL_4BITBUS;