[PATCH] mmc: core: modify the variable name from "mmc" to "host"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>
---
 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
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux