regulator: Make s5m8767_get_voltage_register always return correct register
authorAxel Lin <axel.lin@gmail.com>
Sat, 10 Mar 2012 02:59:43 +0000 (10:59 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 14 Mar 2012 14:10:41 +0000 (14:10 +0000)
commit0a41685fd58f8a4fe097449063764420ebb7ed93
tree1066a384af8f2b0678b6a702508da899e1665d34
parent6c4efe2474d233f439540f1fa364d8a7e48c5cdf
regulator: Make s5m8767_get_voltage_register always return correct register

Check s5m8767->buck[2|3|4]_gpiodvs status in s5m8767_get_voltage_register
and return correct register accordingly.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/s5m8767.c