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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Oct 2015 21:43:23 +0000 (14:43 -0700)
commit9885de37b322fe2b5fde15db6a080b6bde59fa74
tree99a238680e2416684e9c421695362d34a139f9b6
parent7a84668027d9936f8f8bd0eb6d0c07964ef2ade0
cpufreq: dt: Tolerance applies on both sides of target voltage

commit a2022001cebd0825b96aa0f3345ea3ad44ae79d4 upstream.

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: 045ee45c4ff2 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/cpufreq/cpufreq-dt.c