diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-08-02 19:46:17 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-08-03 14:02:06 -0700 |
commit | c29f0ba149c9ca26e541df2cce9ef08a3ab18630 (patch) | |
tree | b82fb119f46e51ea1f8eac1dd57a93f0325fb9ff /include | |
parent | 5e7698f9b861a2e24f579eb2b5ab264badd22ad0 (diff) |
regulator: tps65090: fix multiple regulator registration issue
The regulator of tps65090 is registered as mfd sub device
and hence all regulator should be register in one call
of tps65090 regulator probe.
Fixing this by providing the list of regulator platform data
and registering the regulators in single probe call.
Change-Id: I06600d0bf4dfd62238bed77713ee8abf2afe2371
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120838
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mfd/tps65090.h | 2 | ||||
-rw-r--r-- | include/linux/regulator/tps65090-regulator.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mfd/tps65090.h b/include/linux/mfd/tps65090.h index 38e31c55adbb..df4cf8164aec 100644 --- a/include/linux/mfd/tps65090.h +++ b/include/linux/mfd/tps65090.h @@ -32,6 +32,8 @@ struct tps65090_platform_data { int irq_base; int num_subdevs; struct tps65090_subdev_info *subdevs; + struct tps65090_regulator_platform_data **reg_pdata; + int num_reg_pdata; }; /* diff --git a/include/linux/regulator/tps65090-regulator.h b/include/linux/regulator/tps65090-regulator.h index e352a93a7bc7..2b7d0a18f836 100644 --- a/include/linux/regulator/tps65090-regulator.h +++ b/include/linux/regulator/tps65090-regulator.h @@ -40,10 +40,12 @@ enum { * struct tps65090_regulator_platform_data * * @reg_init_data: The regulator init data. + * @id: Regulator ID. * @slew_rate_uV_per_us: Slew rate microvolt per microsec. */ struct tps65090_regulator_platform_data { + int id; struct regulator_init_data *reg_init_data; }; |