]> asedeno.scripts.mit.edu Git - linux.git/commit
regulator: tps65090: Register all regulators in single probe call
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 9 Oct 2012 09:48:59 +0000 (15:18 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Oct 2012 13:21:14 +0000 (22:21 +0900)
commit24282a1ca33b4a2cdfb907fb7a3ba4d0f6e93311
tree2e100956e7d8ea132908fd2c9c92aea965e3c675
parentddffeb8c4d0331609ef2581d84de4d763607bd37
regulator: tps65090: Register all regulators in single probe call

MFD driver registers the regulator driver once per device and
hence it is require to register all regulators in single probe
call.
Following are details of changes done to achieve this:
- Move the regulator enums to mfd header and remove the
  tps65090-regulator.h as it does not contain more info.
- Add max regulator and register all regulators even if there
  is no regulator init data from platform.
- Convert regulator init data to pointer type in platform data.
- Add input supply name in regulator desc to provide input supply.
- Separate desc information from driver information.
- Disable external control bit to have control through register write.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/tps65090-regulator.c
include/linux/mfd/tps65090.h
include/linux/regulator/tps65090-regulator.h [deleted file]