]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: dt: Tolerance applies on both sides of target voltage
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 2 Sep 2015 09:06:50 +0000 (14:36 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Sep 2015 00:46:09 +0000 (02:46 +0200)
commit8fd043675f2582035a54139c365dbebc740936ef
tree5e56350c75065a69a9dc1bc36050cc4267c3ab3e
parenta5db9ce7e3e1453933728836fbd5c8e92dac1478
cpufreq: dt: Tolerance applies on both sides of target voltage

Tolerance applies on both sides of the target voltage, i.e. both min and
max sides. But while checking if a voltage is supported by the regulator
or not, we haven't taken care of tolerance on the lower side. Fix that.

Cc: Lucas Stach <l.stach@pengutronix.de>
Fixes: c68478a55653 ("cpufreq: cpufreq-dt: disable unsupported OPPs")
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq-dt.c