mfd: tps6586x: move regulator dt parsing to regulator driver
authorLaxman Dewangan <ldewangan@nvidia.com>
Thu, 18 Oct 2012 14:06:09 +0000 (19:36 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 15 Nov 2012 05:23:17 +0000 (14:23 +0900)
commit64e481603ab46bcd1466fdaffca50f25bf123f83
tree0f1adf3c4916d3df3c026924bfc69d63f69a6705
parent77b67063bb6bce6d475e910d3b886a606d0d91f7
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>
drivers/mfd/Kconfig
drivers/mfd/tps6586x.c
drivers/regulator/tps6586x-regulator.c
include/linux/mfd/tps6586x.h