aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/tps62360-regulator.c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-05-11 02:38:42 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-13 08:47:47 -0400
commit8bdca009e66bb18a990a4be1830c73acacfce331 (patch)
tree7806448fc94178b35dc74c8897c4ecc0f6abf841 /drivers/regulator/tps62360-regulator.c
parent6790178f55d47771fca806f6a4b3d55582065eb1 (diff)
regulator: tps62360: make init_data of platform data to pointer.
Convert platform data member regulator_init_data to pointer type. This will avoid the copy of entire regualator init data into platform data member when adding dt support and it can be achieve by simple assignment: pdata->init_data = of_get_regulator_init_data(dev, dev->of_node); Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/tps62360-regulator.c')
-rw-r--r--drivers/regulator/tps62360-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/tps62360-regulator.c b/drivers/regulator/tps62360-regulator.c
index 97fd98bad823..3506900043aa 100644
--- a/drivers/regulator/tps62360-regulator.c
+++ b/drivers/regulator/tps62360-regulator.c
@@ -408,7 +408,7 @@ static int __devinit tps62360_probe(struct i2c_client *client,
408 } 408 }
409 409
410 config.dev = &client->dev; 410 config.dev = &client->dev;
411 config.init_data = &pdata->reg_init_data; 411 config.init_data = pdata->reg_init_data;
412 config.driver_data = tps; 412 config.driver_data = tps;
413 413
414 /* Register the regulators */ 414 /* Register the regulators */