From: Heiko Stübner Date: Sun, 3 Jun 2012 19:31:09 +0000 (+0200) Subject: regulator: gpio-regulator: Fix finding of smallest value X-Git-Tag: v3.5-rc3~33^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00926369b745fb0c1e5c27cec35f6adc9752f2c4;p=pandora-kernel.git regulator: gpio-regulator: Fix finding of smallest value 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 Acked-by: Axel Lin Signed-off-by: Mark Brown --- Reading git-diff-tree failed