]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: Add a pointer to aat2870_data in struct aat2870_regulator
authorAxel Lin <axel.lin@gmail.com>
Fri, 2 Mar 2012 01:28:44 +0000 (09:28 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 11 Mar 2012 20:48:48 +0000 (20:48 +0000)
commit7552ec515db11563c8a122d27f6289cbd4991b30
treedc8d6e9fee685738020ceb585144bc1d1df707a8
parent5dc4ab34f82ea9f92e0dedfc12bfa17483e916b6
regulator: Add a pointer to aat2870_data in struct aat2870_regulator

The reason we add *pdev in struct aat2870_regulator is to use it
to get a pointer to struct aat2870_data.
Save a pointer to struct aat2870_data instead of pdev in struct
aat2870_regulator, this change makes the intention more clear.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Jin Park <jinyoungp@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/aat2870-regulator.c