regulator: Support set_voltage_time_sel for drivers implement set_voltage
authorAxel Lin <axel.lin@gmail.com>
Wed, 4 Apr 2012 02:32:10 +0000 (10:32 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 5 Apr 2012 10:36:20 +0000 (11:36 +0100)
commiteba41a5e8c9473c24c333df288d4fd6a40e98464
tree1c6478752c673622d6ad0e83852ec0cd2c4517bb
parent576ca4367f291a9b240d027670fa2e344edf8c8a
regulator: Support set_voltage_time_sel for drivers implement set_voltage

In currently implementation of _regulator_do_set_voltage, set_voltage_time_sel will
only be called if set_voltage_sel is implemented.

set_voltage_time_sel actually only needs get_voltage_sel to get old_selector.

This patch makes regulator core support set_voltage_time_sel for drivers
implement either set_voltage or set_voltage_sel.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/core.c