]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: Add set_voltage_time op
authorMatthias Kaehlcke <mka@chromium.org>
Wed, 14 Sep 2016 16:52:08 +0000 (09:52 -0700)
committerMark Brown <broonie@kernel.org>
Fri, 16 Sep 2016 17:38:22 +0000 (18:38 +0100)
commiteebaacf1d86adbb69a157d455cda5f476ae7babd
treed9b12334afd63697d21e46788c7a79c80abd0da7
parent0305059721f78bf028085e49b7aefbb0f95d09ee
regulator: core: Add set_voltage_time op

The new op is analogous to set_voltage_time_sel. It can be used by
regulators which don't have a table of discrete voltages. The function
returns the time for the regulator output voltage to stabilize after
being set to a new value, in microseconds. If the op is not set a
default implementation is used to calculate the delay.

This change also removes the ramp_delay calculation in the PWM
regulator, since the driver now uses the core code for the calculation
of the delay.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c
drivers/regulator/pwm-regulator.c
include/linux/regulator/driver.h