]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: gpio-regulator: Fix finding of smallest value
authorHeiko Stübner <heiko@sntech.de>
Sun, 3 Jun 2012 19:31:09 +0000 (21:31 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 4 Jun 2012 09:44:24 +0000 (10:44 +0100)
commit1e521fd1c695862ca7a807ccbedd3a5a4ec86027
tree33184434217ad309dc61b8b5049b34279b73e811
parent649867a019935f52f95b7578b744f9b201aaa6c0
regulator: gpio-regulator: Fix finding of smallest value

Commit 19a747c7c6d5 (regulator: gpio-regulator: Set the smallest
voltage/current in the specified range) forgot to set the newly
introduced best_val.

Therefore it stayed always at INT_MAX thus breaking the setting
of the voltage.

Included is also an init value for target, as warnings about
a possibly uninitialised target started appearing with this fix.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/gpio-regulator.c