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)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 3 Apr 2012 21:00:39 +0000 (00:00 +0300)
commit73e566435463f969d84006b77bbd6968bcd22b40
tree6c99c8966cf063d6d36f78b613361fda1cb28525
parente9888f6ea8ccad9c65cd7d47579e380b58611314
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