regulator: twl4030: add support for external voltage get/set
authorTero Kristo <t-kristo@ti.com>
Thu, 16 Feb 2012 10:27:52 +0000 (12:27 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 11 Mar 2012 20:08:45 +0000 (20:08 +0000)
commit63bfff4e20211b464cbea6e79e5fd36df227c154
tree4ea7a62c37820578be7ecbc943f6e62a017c64e4
parenta33b6e5a8fb5fadeef206bacef13117e8a3080c4
regulator: twl4030: add support for external voltage get/set

This is needed for SMPS regulators, which use the OMAP voltage
processor for voltage get/set functions instead of the normal I2C
channel. For this purpose, regulator_init_data->driver_data contents
are expanded, it is now a struct which contains function pointers
for the set/get voltage operations, a data pointer for these, and
the previously used features bitmask.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com> [for the MFD part]
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/mfd/twl-core.c
drivers/regulator/twl-regulator.c
include/linux/i2c/twl.h