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 | |
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>
-rw-r--r-- | drivers/mmc/host/sdhci-pci.c | 4 | ||||
-rw-r--r-- | drivers/mmc/host/sdhci-pxav2.c | 2 | ||||
-rw-r--r-- | drivers/mmc/host/sdhci-s3c.c | 8 | ||||
-rw-r--r-- | drivers/mmc/host/sdhci-tegra.c | 4 | ||||
-rw-r--r-- | drivers/mmc/host/sdhci.c | 8 | ||||
-rw-r--r-- | drivers/mmc/host/sdhci.h | 2 |
6 files changed, 14 insertions, 14 deletions
diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c index c7dd0cbc99de..c7ccf3034dad 100644 --- a/drivers/mmc/host/sdhci-pci.c +++ b/drivers/mmc/host/sdhci-pci.c | |||
@@ -935,7 +935,7 @@ static int sdhci_pci_enable_dma(struct sdhci_host *host) | |||
935 | return 0; | 935 | return 0; |
936 | } | 936 | } |
937 | 937 | ||
938 | static int sdhci_pci_8bit_width(struct sdhci_host *host, int width) | 938 | static int sdhci_pci_bus_width(struct sdhci_host *host, int width) |
939 | { | 939 | { |
940 | u8 ctrl; | 940 | u8 ctrl; |
941 | 941 | ||
@@ -977,7 +977,7 @@ static void sdhci_pci_hw_reset(struct sdhci_host *host) | |||
977 | 977 | ||
978 | static struct sdhci_ops sdhci_pci_ops = { | 978 | static struct sdhci_ops sdhci_pci_ops = { |
979 | .enable_dma = sdhci_pci_enable_dma, | 979 | .enable_dma = sdhci_pci_enable_dma, |
980 | .platform_8bit_width = sdhci_pci_8bit_width, | 980 | .platform_bus_width = sdhci_pci_bus_width, |
981 | .hw_reset = sdhci_pci_hw_reset, | 981 | .hw_reset = sdhci_pci_hw_reset, |
982 | }; | 982 | }; |
983 | 983 | ||
diff --git a/drivers/mmc/host/sdhci-pxav2.c b/drivers/mmc/host/sdhci-pxav2.c index ac854aa192a8..7e5756593b68 100644 --- a/drivers/mmc/host/sdhci-pxav2.c +++ b/drivers/mmc/host/sdhci-pxav2.c | |||
@@ -121,7 +121,7 @@ static u32 pxav2_get_max_clock(struct sdhci_host *host) | |||
121 | static struct sdhci_ops pxav2_sdhci_ops = { | 121 | static struct sdhci_ops pxav2_sdhci_ops = { |
122 | .get_max_clock = pxav2_get_max_clock, | 122 | .get_max_clock = pxav2_get_max_clock, |
123 | .platform_reset_exit = pxav2_set_private_registers, | 123 | .platform_reset_exit = pxav2_set_private_registers, |
124 | .platform_8bit_width = pxav2_mmc_set_width, | 124 | .platform_bus_width = pxav2_mmc_set_width, |
125 | }; | 125 | }; |
126 | 126 | ||
127 | #ifdef CONFIG_OF | 127 | #ifdef CONFIG_OF |
diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c index 82a8de148a8f..b16dae00cfd4 100644 --- a/drivers/mmc/host/sdhci-s3c.c +++ b/drivers/mmc/host/sdhci-s3c.c | |||
@@ -332,14 +332,14 @@ static void sdhci_cmu_set_clock(struct sdhci_host *host, unsigned int clock) | |||
332 | } | 332 | } |
333 | 333 | ||
334 | /** | 334 | /** |
335 | * sdhci_s3c_platform_8bit_width - support 8bit buswidth | 335 | * sdhci_s3c_platform_bus_width - support 8bit buswidth |
336 | * @host: The SDHCI host being queried | 336 | * @host: The SDHCI host being queried |
337 | * @width: MMC_BUS_WIDTH_ macro for the bus width being requested | 337 | * @width: MMC_BUS_WIDTH_ macro for the bus width being requested |
338 | * | 338 | * |
339 | * We have 8-bit width support but is not a v3 controller. | 339 | * We have 8-bit width support but is not a v3 controller. |
340 | * So we add platform_8bit_width() and support 8bit width. | 340 | * So we add platform_bus_width() and support 8bit width. |
341 | */ | 341 | */ |
342 | static int sdhci_s3c_platform_8bit_width(struct sdhci_host *host, int width) | 342 | static int sdhci_s3c_platform_bus_width(struct sdhci_host *host, int width) |
343 | { | 343 | { |
344 | u8 ctrl; | 344 | u8 ctrl; |
345 | 345 | ||
@@ -369,7 +369,7 @@ static struct sdhci_ops sdhci_s3c_ops = { | |||
369 | .get_max_clock = sdhci_s3c_get_max_clk, | 369 | .get_max_clock = sdhci_s3c_get_max_clk, |
370 | .set_clock = sdhci_s3c_set_clock, | 370 | .set_clock = sdhci_s3c_set_clock, |
371 | .get_min_clock = sdhci_s3c_get_min_clock, | 371 | .get_min_clock = sdhci_s3c_get_min_clock, |
372 | .platform_8bit_width = sdhci_s3c_platform_8bit_width, | 372 | .platform_bus_width = sdhci_s3c_platform_bus_width, |
373 | }; | 373 | }; |
374 | 374 | ||
375 | static void sdhci_s3c_notify_change(struct platform_device *dev, int state) | 375 | static void sdhci_s3c_notify_change(struct platform_device *dev, int state) |
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 3695b2e0cbd2..5a600a53b876 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c | |||
@@ -143,7 +143,7 @@ static void tegra_sdhci_reset_exit(struct sdhci_host *host, u8 mask) | |||
143 | } | 143 | } |
144 | } | 144 | } |
145 | 145 | ||
146 | static int tegra_sdhci_8bit(struct sdhci_host *host, int bus_width) | 146 | static int tegra_sdhci_buswidth(struct sdhci_host *host, int bus_width) |
147 | { | 147 | { |
148 | struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); | 148 | struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); |
149 | struct sdhci_tegra *tegra_host = pltfm_host->priv; | 149 | struct sdhci_tegra *tegra_host = pltfm_host->priv; |
@@ -170,7 +170,7 @@ static struct sdhci_ops tegra_sdhci_ops = { | |||
170 | .read_l = tegra_sdhci_readl, | 170 | .read_l = tegra_sdhci_readl, |
171 | .read_w = tegra_sdhci_readw, | 171 | .read_w = tegra_sdhci_readw, |
172 | .write_l = tegra_sdhci_writel, | 172 | .write_l = tegra_sdhci_writel, |
173 | .platform_8bit_width = tegra_sdhci_8bit, | 173 | .platform_bus_width = tegra_sdhci_buswidth, |
174 | .platform_reset_exit = tegra_sdhci_reset_exit, | 174 | .platform_reset_exit = tegra_sdhci_reset_exit, |
175 | }; | 175 | }; |
176 | 176 | ||
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; |
diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h index a6d69b7bdea2..c8d11b904a40 100644 --- a/drivers/mmc/host/sdhci.h +++ b/drivers/mmc/host/sdhci.h | |||
@@ -269,7 +269,7 @@ struct sdhci_ops { | |||
269 | unsigned int (*get_max_clock)(struct sdhci_host *host); | 269 | unsigned int (*get_max_clock)(struct sdhci_host *host); |
270 | unsigned int (*get_min_clock)(struct sdhci_host *host); | 270 | unsigned int (*get_min_clock)(struct sdhci_host *host); |
271 | unsigned int (*get_timeout_clock)(struct sdhci_host *host); | 271 | unsigned int (*get_timeout_clock)(struct sdhci_host *host); |
272 | int (*platform_8bit_width)(struct sdhci_host *host, | 272 | int (*platform_bus_width)(struct sdhci_host *host, |
273 | int width); | 273 | int width); |
274 | void (*platform_send_init_74_clocks)(struct sdhci_host *host, | 274 | void (*platform_send_init_74_clocks)(struct sdhci_host *host, |
275 | u8 power_mode); | 275 | u8 power_mode); |