regulator: max77686: Use array to save pointer to rdev
authorAxel Lin <axel.lin@gmail.com>
Sun, 5 Aug 2012 02:11:16 +0000 (10:11 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 28 Aug 2012 18:00:26 +0000 (11:00 -0700)
commitcb44cdeacd693ca964deab9d9f698920bb73529d
treee38a4216e4706f2f140a9461c9afefee02ade2a8
parent2c58e2669f197ab0fd5e7552fe82f7bc7d06b15d
regulator: max77686: Use array to save pointer to rdev

MAX77686_REGULATORS is known in 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/max77686.c