regulator: wm8400: Use wm8400_ldo_list_voltage instead of open code to verify selecte...
authorAxel Lin <axel.lin@gmail.com>
Tue, 12 Jun 2012 08:34:55 +0000 (16:34 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 13 Jun 2012 09:47:02 +0000 (10:47 +0100)
commit38c20eb23fb7b5505ac80595f18f4209abc19cd3
treee5359e02888a3ce9166d66ddc199eba23aff9d0c
parent3fe3a182adfeca84f39751af03c8571831a0877f
regulator: wm8400: Use wm8400_ldo_list_voltage instead of open code to verify selected voltage

Call wm8400_ldo_list_voltage() instead of open code to verify selected voltage
falls within specified range.
Use wm8400_ldo_list_voltage() here is less error prone.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/wm8400-regulator.c