summaryrefslogtreecommitdiff
path: root/drivers/opp
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2021-01-21 12:08:45 +0530
committerViresh Kumar <viresh.kumar@linaro.org>2021-02-02 10:27:46 +0530
commit5ad58bbacf802f7d11cadd76881311d6e4b2bce0 (patch)
tree71569e6555c5b16054b226fabf3a605b8bdcd8a0 /drivers/opp
parent04b447df1d098dcd7d133203a310a6d415875547 (diff)
downloadlwn-5ad58bbacf802f7d11cadd76881311d6e4b2bce0.tar.gz
lwn-5ad58bbacf802f7d11cadd76881311d6e4b2bce0.zip
opp: Rename _opp_set_rate_zero()
This routine has nothing to do with frequency, it just disables all the resources previously enabled. Rename it to match its purpose. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Tested-by: Dmitry Osipenko <digetx@gmail.com>
Diffstat (limited to 'drivers/opp')
-rw-r--r--drivers/opp/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/opp/core.c b/drivers/opp/core.c
index b4528e40ad01..9637f2994d2e 100644
--- a/drivers/opp/core.c
+++ b/drivers/opp/core.c
@@ -950,7 +950,7 @@ int dev_pm_opp_set_bw(struct device *dev, struct dev_pm_opp *opp)
}
EXPORT_SYMBOL_GPL(dev_pm_opp_set_bw);
-static int _opp_set_rate_zero(struct device *dev, struct opp_table *opp_table)
+static int _disable_opp_table(struct device *dev, struct opp_table *opp_table)
{
int ret;
@@ -1004,7 +1004,7 @@ int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq)
}
if (unlikely(!target_freq)) {
- ret = _opp_set_rate_zero(dev, opp_table);
+ ret = _disable_opp_table(dev, opp_table);
goto put_opp_table;
}