regulator: gpio-regulator: Fix finding of smallest value
From: Heiko Stuebner <heiko@...> Date: Sun, 3 Jun 2012 18:16:01 +0200
Commit-Message
Commit 4dbd8f63f07a (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@...>
Patch-Comment
drivers/regulator/gpio-regulator.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
Statistics
- 4 lines added
- 2 lines removed