Commit 3958790e authored by Ulf Hansson's avatar Ulf Hansson

mmc: core: Convert mmc_regulator_get_ocrmask() to static

The only left user of mmc_regulator_get_ocrmask() is the mmc core itself.
Therefore, let's drop the export and turn it into static.
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent de13d5a4
...@@ -58,7 +58,7 @@ static int mmc_ocrbitnum_to_vdd(int vdd_bit, int *min_uV, int *max_uV) ...@@ -58,7 +58,7 @@ static int mmc_ocrbitnum_to_vdd(int vdd_bit, int *min_uV, int *max_uV)
* regulator. This would normally be called before registering the * regulator. This would normally be called before registering the
* MMC host adapter. * MMC host adapter.
*/ */
int mmc_regulator_get_ocrmask(struct regulator *supply) static int mmc_regulator_get_ocrmask(struct regulator *supply)
{ {
int result = 0; int result = 0;
int count; int count;
...@@ -90,7 +90,6 @@ int mmc_regulator_get_ocrmask(struct regulator *supply) ...@@ -90,7 +90,6 @@ int mmc_regulator_get_ocrmask(struct regulator *supply)
return result; return result;
} }
EXPORT_SYMBOL_GPL(mmc_regulator_get_ocrmask);
/** /**
* mmc_regulator_set_ocr - set regulator to match host->ios voltage * mmc_regulator_set_ocr - set regulator to match host->ios voltage
......
...@@ -507,17 +507,11 @@ void sdio_run_irqs(struct mmc_host *host); ...@@ -507,17 +507,11 @@ void sdio_run_irqs(struct mmc_host *host);
void sdio_signal_irq(struct mmc_host *host); void sdio_signal_irq(struct mmc_host *host);
#ifdef CONFIG_REGULATOR #ifdef CONFIG_REGULATOR
int mmc_regulator_get_ocrmask(struct regulator *supply);
int mmc_regulator_set_ocr(struct mmc_host *mmc, int mmc_regulator_set_ocr(struct mmc_host *mmc,
struct regulator *supply, struct regulator *supply,
unsigned short vdd_bit); unsigned short vdd_bit);
int mmc_regulator_set_vqmmc(struct mmc_host *mmc, struct mmc_ios *ios); int mmc_regulator_set_vqmmc(struct mmc_host *mmc, struct mmc_ios *ios);
#else #else
static inline int mmc_regulator_get_ocrmask(struct regulator *supply)
{
return 0;
}
static inline int mmc_regulator_set_ocr(struct mmc_host *mmc, static inline int mmc_regulator_set_ocr(struct mmc_host *mmc,
struct regulator *supply, struct regulator *supply,
unsigned short vdd_bit) unsigned short vdd_bit)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment