From: Axel Lin Date: Mon, 25 Oct 2010 23:55:54 +0000 (+0800) Subject: regulator: max8952 - fix max8952_set_voltage X-Git-Tag: v2.6.37-rc1~56^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec10b0e94ebe7de3b301d60e6f7f4a12d3d280c6;p=pandora-kernel.git regulator: max8952 - fix max8952_set_voltage In current implementation, vid is declared as u8, then "vid == -1" is always false, and "vid >= 0" is always true. Thus change it to s8. Signed-off-by: Axel Lin Acked-by: Mark Brown Acked-by: Kyungmin Park Signed-off-by: Liam Girdwood --- Reading git-diff-tree failed