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)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 10 Feb 2016 23:24:37 +0000 (00:24 +0100)
commit755b888ff098c9f762717a9fbda7e05b16619069
tree235cfc10620eaaf1c1e3cc2a4bf1399ab8f29f77
parent6def6ea75e6dea45f01a16ae3cfb5b5ce48dd5e9
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>
drivers/cpufreq/cpufreq-dt.c