提交 5ad58bba 编写于 作者: V Viresh Kumar

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: NViresh Kumar <viresh.kumar@linaro.org>
Tested-by: NDmitry Osipenko <digetx@gmail.com>
上级 04b447df
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册