diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-21 06:02:27 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-02-24 14:37:02 -0500 |
commit | 7bc088d38f92f58df97e1cd9a8430331ee5491bb (patch) | |
tree | 21e778f5fc8a110eb6d7ce2e1c5b0248cdd4c147 /drivers/mmc/host/sdhci.c | |
parent | 2a15f981aec7c6b800c0d285ee1a63acc8487b9b (diff) |
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.c | 8 |
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) | |||
1395 | /* | 1395 | /* |
1396 | * If your platform has 8-bit width support but is not a v3 controller, | 1396 | * If your platform has 8-bit width support but is not a v3 controller, |
1397 | * or if it requires special setup code, you should implement that in | 1397 | * or if it requires special setup code, you should implement that in |
1398 | * platform_8bit_width(). | 1398 | * platform_bus_width(). |
1399 | */ | 1399 | */ |
1400 | if (host->ops->platform_8bit_width) | 1400 | if (host->ops->platform_bus_width) { |
1401 | host->ops->platform_8bit_width(host, ios->bus_width); | 1401 | host->ops->platform_bus_width(host, ios->bus_width); |
1402 | else { | 1402 | } else { |
1403 | ctrl = sdhci_readb(host, SDHCI_HOST_CONTROL); | 1403 | ctrl = sdhci_readb(host, SDHCI_HOST_CONTROL); |
1404 | if (ios->bus_width == MMC_BUS_WIDTH_8) { | 1404 | if (ios->bus_width == MMC_BUS_WIDTH_8) { |
1405 | ctrl &= ~SDHCI_CTRL_4BITBUS; | 1405 | ctrl &= ~SDHCI_CTRL_4BITBUS; |