cpufreq: dt: Reuse dev_pm_opp_get_max_transition_latency()
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 9 Feb 2016 05:00:45 +0000 (10:30 +0530)
committerAlex Shi <alex.shi@linaro.org>
Fri, 8 Apr 2016 03:47:37 +0000 (11:47 +0800)
commitba7b484ca022afe4fc4b64b3f4ed359a57a93831
tree0ab2b76e6e18a20a1d7976ee58acf02298303db1
parent70969a89d8212f3d77a4c67712fbbd22c465d50e
cpufreq: dt: Reuse dev_pm_opp_get_max_transition_latency()

OPP layer has all the information now to calculate transition latency
(clock_latency + voltage_latency). Lets reuse the OPP layer helper
dev_pm_opp_get_max_transition_latency() instead of open coding the same
in cpufreq-dt driver.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 755b888ff098c9f762717a9fbda7e05b16619069)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
drivers/cpufreq/cpufreq-dt.c