]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitb21bcd1ada026cd90243311e89dd8d999fe0a227
treedc8d6e9fee685738020ceb585144bc1d1df707a8
parent48ee1160a44b6f404f5553a6fce8447507982311
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