All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jaehoon Chung <jh80.chung@samsung.com>
To: "linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>
Cc: Chris Ball <chris@printf.net>,
	Grant Likely <grant.likely@linaro.org>,
	Ulf Hansson <ulf.hansson@linaro.org>,
	Seungwon Jeon <tgih.jun@samsung.com>,
	Johan Rudholm <johan.rudholm@stericsson.com>
Subject: [PATCH] mmc: core: modify the variable name from "mmc" to "host"
Date: Fri, 10 Jan 2014 13:31:38 +0900	[thread overview]
Message-ID: <52CF77AA.3090203@samsung.com> (raw)

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

                 reply	other threads:[~2014-01-10  4:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52CF77AA.3090203@samsung.com \
    --to=jh80.chung@samsung.com \
    --cc=chris@printf.net \
    --cc=grant.likely@linaro.org \
    --cc=johan.rudholm@stericsson.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=tgih.jun@samsung.com \
    --cc=ulf.hansson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.