]> git.karo-electronics.de Git - mv-sheeva.git/commit
regulator: max8952 - fix max8952_set_voltage
authorAxel Lin <axel.lin@gmail.com>
Mon, 25 Oct 2010 23:55:54 +0000 (07:55 +0800)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Thu, 28 Oct 2010 21:40:32 +0000 (22:40 +0100)
commitec10b0e94ebe7de3b301d60e6f7f4a12d3d280c6
treea4e2f4b54fa22e52f3f634d5f5a10c4206e2fa2a
parentda05738e94b644d759f28184a9f0bf875b271c55
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 <axel.lin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/max8952.c