regulator: fix calculation of voltage range in da9034_set_ldo12_voltage()
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 18 Sep 2009 19:56:20 +0000 (12:56 -0700)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Tue, 22 Sep 2009 12:32:44 +0000 (13:32 +0100)
commit656d0498ea14c51cd8ec00081b5e0662acc72614
tree0b95569933d453fb7039a0e690a5eff71d553dc7
parent77bb8ff968dddb42a773c7b32d1a6a07f96f3f79
regulator: fix calculation of voltage range in da9034_set_ldo12_voltage()

For val to be greater than 7 or less than 20 is logically always true.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Liam Girdwood <lrg@slimlogic.co.uk>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/da903x.c