regulator: tps65090: convert regualtor_init_data as pointer
Laxman Dewangan [Thu, 2 Aug 2012 13:36:18 +0000 (18:36 +0530)]
In regulator platform data for tps65090, convert the regulator
init data to a pointer type to have easy support in DT.

Change-Id: I00a88e9f12ce5c55880e5c5084357d495bc99b56
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120837

drivers/regulator/tps65090-regulator.c
include/linux/regulator/tps65090-regulator.h

index caa8986..e18679c 100644 (file)
@@ -166,7 +166,7 @@ static int __devinit tps65090_regulator_probe(struct platform_device *pdev)
        ri->rinfo = rinfo;
 
        rdev = regulator_register(&ri->rinfo->desc, &pdev->dev,
-                               &tps_pdata->regulator, ri);
+                               tps_pdata->reg_init_data, ri);
        if (IS_ERR(rdev)) {
                dev_err(&pdev->dev, "failed to register regulator %s\n",
                                ri->rinfo->desc.name);
index 5e27d4a..e352a93 100644 (file)
@@ -39,12 +39,12 @@ enum {
 /*
  * struct tps65090_regulator_platform_data
  *
- * @regulator: The regulator init data.
+ * @reg_init_data: The regulator init data.
  * @slew_rate_uV_per_us: Slew rate microvolt per microsec.
  */
 
 struct tps65090_regulator_platform_data {
-       struct regulator_init_data regulator;
+       struct regulator_init_data *reg_init_data;
 };
 
 #endif /* __REGULATOR_TPS65090_H */