regulator: Use array to store dcdc_range settings for tps65912
authorAxel Lin <axel.lin@gmail.com>
Thu, 8 Mar 2012 23:05:41 +0000 (07:05 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 11 Mar 2012 20:49:35 +0000 (20:49 +0000)
commit85c5d86d0e87bd843d711dcb7427c6ba64f736d1
tree8bd583198dd550c655746e1bf8e824875a8c5403
parent5b5e977ce71cab973d9f8c7d5303832a2bafa92c
regulator: Use array to store dcdc_range settings for tps65912

Then we can use the regulator id as array index to access the array.
This change makes the code simpler.

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