* [PATCH] mmc: core: modify the variable name from "mmc" to "host"
@ 2014-01-10 4:31 Jaehoon Chung
0 siblings, 0 replies; only message in thread
From: Jaehoon Chung @ 2014-01-10 4:31 UTC (permalink / raw)
To: linux-mmc@vger.kernel.org
Cc: Chris Ball, Grant Likely, Ulf Hansson, Seungwon Jeon,
Johan Rudholm
mmc_host is used the "host" in core.c.
To be consistent, change the variable name from "mmc" to "host".
(Minor fixing)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
---
drivers/mmc/core/core.c | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 098374b..123f1f9 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -1265,7 +1265,7 @@ EXPORT_SYMBOL_GPL(mmc_regulator_get_ocrmask);
* a particular supply voltage. This would normally be called from the
* set_ios() method.
*/
-int mmc_regulator_set_ocr(struct mmc_host *mmc,
+int mmc_regulator_set_ocr(struct mmc_host *host,
struct regulator *supply,
unsigned short vdd_bit)
{
@@ -1307,42 +1307,42 @@ int mmc_regulator_set_ocr(struct mmc_host *mmc,
else
result = 0;
- if (result == 0 && !mmc->regulator_enabled) {
+ if (result == 0 && !host->regulator_enabled) {
result = regulator_enable(supply);
if (!result)
- mmc->regulator_enabled = true;
+ host->regulator_enabled = true;
}
- } else if (mmc->regulator_enabled) {
+ } else if (host->regulator_enabled) {
result = regulator_disable(supply);
if (result == 0)
- mmc->regulator_enabled = false;
+ host->regulator_enabled = false;
}
if (result)
- dev_err(mmc_dev(mmc),
+ dev_err(mmc_dev(host),
"could not set regulator OCR (%d)\n", result);
return result;
}
EXPORT_SYMBOL_GPL(mmc_regulator_set_ocr);
-int mmc_regulator_get_supply(struct mmc_host *mmc)
+int mmc_regulator_get_supply(struct mmc_host *host)
{
- struct device *dev = mmc_dev(mmc);
+ struct device *dev = mmc_dev(host);
struct regulator *supply;
int ret;
supply = devm_regulator_get(dev, "vmmc");
- mmc->supply.vmmc = supply;
- mmc->supply.vqmmc = devm_regulator_get_optional(dev, "vqmmc");
+ host->supply.vmmc = supply;
+ host->supply.vqmmc = devm_regulator_get_optional(dev, "vqmmc");
if (IS_ERR(supply))
return PTR_ERR(supply);
ret = mmc_regulator_get_ocrmask(supply);
if (ret > 0)
- mmc->ocr_avail = ret;
+ host->ocr_avail = ret;
else
- dev_warn(mmc_dev(mmc), "Failed getting OCR mask: %d\n", ret);
+ dev_warn(mmc_dev(host), "Failed getting OCR mask: %d\n", ret);
return 0;
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-01-10 4:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-10 4:31 [PATCH] mmc: core: modify the variable name from "mmc" to "host" Jaehoon Chung
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).