regulator: s2mps11: Use array to save pointer to rdev
authorAxel Lin <axel.lin@gmail.com>
Fri, 13 Jul 2012 02:12:40 +0000 (10:12 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 28 Aug 2012 18:00:15 +0000 (11:00 -0700)
commitad46ed14cac14073803371f12922e7ee37e98624
tree691f347b2e9b6636f27cd7be5b4c6551152fdc11
parentfea7a08acb13524b47711625eebea40a0ede69a0
regulator: s2mps11: Use array to save pointer to rdev

The number of regulator is known at compile time, use array to save pointer to
rdev makes the code simpler.

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