]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Fri, 3 Aug 2012 22:21:25 +0000 (23:21 +0100)
commit53a00168d2d9e4b31ca9851dc211386baf54e9b2
tree7f54ba3f170b2d504561f8f202d006c21eb20cff
parent0d7614f09c1ebdbaa1599a5aba7593f147bf96ee
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