]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb6add6f37375d45a83accf16a4e4ccef4409d1b3
tree4ea7a62c37820578be7ecbc943f6e62a017c64e4
parentdf2db6d6941857888b87c15e2d5ec1430912fac4
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