regulator: Make max8997_get_voltage_register always return correct register
authorAxel Lin <axel.lin@gmail.com>
Tue, 13 Mar 2012 03:22:41 +0000 (11:22 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 1 Apr 2012 10:59:32 +0000 (11:59 +0100)
commit6f43c3809ec35c04c03f428d8b71121c13d2434e
tree18db50749f846763b4ceb6c598328ba30100aad1
parent6ea67d04b6d4b5e2bf8d276ceb801e03d7f22910
regulator: Make max8997_get_voltage_register always return correct register

Check max8997->buck[1|2|5]_gpiodvs status in max8997_get_voltage_register
and return correct register accordingly.

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