]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3b7b1e7834016426a30001ab3301908283559698
tree8bd583198dd550c655746e1bf8e824875a8c5403
parent62a53d3619968f83805bf2f248c5ef25f5d395e4
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