diff options
| author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-10-18 10:06:09 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-11-15 00:23:17 -0500 |
| commit | 64e481603ab46bcd1466fdaffca50f25bf123f83 (patch) | |
| tree | 0f1adf3c4916d3df3c026924bfc69d63f69a6705 /include | |
| parent | 77b67063bb6bce6d475e910d3b886a606d0d91f7 (diff) | |
mfd: tps6586x: move regulator dt parsing to regulator driver
Moving regulator node parsing to regulator driver in place
of parsing it on mfd driver.
The motivation for this change are:
- MFD core driver should not depends on regulator and able
to instantiate device without regulator.
- The API for matching regulators are in regulator core and
it is good that regulator driver only calls this API.
- Regulator specific support should be in regulator driver only
to ease any enhancement/modification for regulators.
- The regulator driver is now registered as mfd sub device and
all regulator registration is done from single probe call.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/mfd/tps6586x.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mfd/tps6586x.h b/include/linux/mfd/tps6586x.h index 2dd123194958..f8da0e152567 100644 --- a/include/linux/mfd/tps6586x.h +++ b/include/linux/mfd/tps6586x.h | |||
| @@ -29,6 +29,7 @@ enum { | |||
| 29 | TPS6586X_ID_LDO_8, | 29 | TPS6586X_ID_LDO_8, |
| 30 | TPS6586X_ID_LDO_9, | 30 | TPS6586X_ID_LDO_9, |
| 31 | TPS6586X_ID_LDO_RTC, | 31 | TPS6586X_ID_LDO_RTC, |
| 32 | TPS6586X_ID_MAX_REGULATOR, | ||
| 32 | }; | 33 | }; |
| 33 | 34 | ||
| 34 | enum { | 35 | enum { |
| @@ -79,6 +80,8 @@ struct tps6586x_platform_data { | |||
| 79 | int gpio_base; | 80 | int gpio_base; |
| 80 | int irq_base; | 81 | int irq_base; |
| 81 | bool pm_off; | 82 | bool pm_off; |
| 83 | |||
| 84 | struct regulator_init_data *reg_init_data[TPS6586X_ID_MAX_REGULATOR]; | ||
| 82 | }; | 85 | }; |
| 83 | 86 | ||
| 84 | /* | 87 | /* |
