diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-08-02 13:34:01 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-08-02 18:03:10 -0700 |
commit | d88c5cce18adf50d472508e38fced959b845e7d8 (patch) | |
tree | bf34a12f2731e1b861cb20e9fade09cbd8296cf6 /include/linux/regulator | |
parent | 5f436b65eb7d71b85e1dd1ffd58410ebbda01a74 (diff) |
regulator: tps80031: register regulators as mfd sub device
Converting tps80031 regulator driver to be register as mfd
sub device of the tps65910 and register all its regulators from
single probe calls.
Add separate platform data for the regulator to be supply from
board as part of tps80031 platform data.
Change-Id: Ie65b25f3058202070f7f917e64a4a660dd941210
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119976
Diffstat (limited to 'include/linux/regulator')
-rw-r--r-- | include/linux/regulator/tps80031-regulator.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/regulator/tps80031-regulator.h b/include/linux/regulator/tps80031-regulator.h index 4058f7cfa27a..97fdf34c1b6e 100644 --- a/include/linux/regulator/tps80031-regulator.h +++ b/include/linux/regulator/tps80031-regulator.h @@ -66,6 +66,7 @@ enum { /* * struct tps80031_regulator_platform_data - tps80031 regulator platform data. * + * @regulator_id" Regulator ID. * @reg_init_data: The regulator init data. * @init_uV: initial micro volts which need to be set. * @init_enable: Enable or do not enable the rails during initialization. @@ -80,6 +81,7 @@ enum { */ struct tps80031_regulator_platform_data { + int regulator_id; struct regulator_init_data *reg_init_data; int init_uV; unsigned init_enable:1; |