]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: fix voltage check in regulator_is_supported_voltage()
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 13 Nov 2012 08:48:51 +0000 (09:48 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 15 Nov 2012 02:14:18 +0000 (11:14 +0900)
commit81250821b32c9d193c4b4f1c9401eece05f550ce
tree0399ff57ee6b76d9bacd3df18b0483197fb3281b
parent28d7230bf57b8eec6f73731073910a864e140197
regulator: fix voltage check in regulator_is_supported_voltage()

regulator_is_supported_voltage() should return true only if the voltage
of fixed/constant regulator is between min_uV and max_uV.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
drivers/regulator/core.c