regulator: core: Add regulator_set_voltage_time_sel to calculate ramp delay.
authorYadwinder Singh Brar <yadi.brar01@gmail.com>
Sat, 9 Jun 2012 11:10:38 +0000 (16:40 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 11 Jun 2012 04:01:46 +0000 (12:01 +0800)
commit98a175b60f46a80dfa44fb0e0807f2e5a351f35f
tree07c81163935868d9b1334a1bb33f8edddc6a29ca
parentab0d1cbe55014ac65cfc317f8ef2cd5fa4b7d4da
regulator: core: Add regulator_set_voltage_time_sel to calculate ramp delay.

This patch adds regulator_set_voltage_time_sel(), to move into core, the
commonly used code by drivers to provide the .set_voltage_time_sel callback.
It will also allow us to configure different ramp delay for different
regulators easily.

Signed-off-by: Yadwinder Singh Brar <yadi.brar@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/core.c
include/linux/regulator/driver.h