]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: qcom_spmi: Only use selector based regulator ops
authorStephen Boyd <stephen.boyd@linaro.org>
Thu, 31 Mar 2016 01:57:50 +0000 (18:57 -0700)
committerMark Brown <broonie@kernel.org>
Thu, 31 Mar 2016 17:32:41 +0000 (10:32 -0700)
commit3b236ac9ab8f7d6a50927efa000122d87859850c
treef205b739d5cffbe87f455d83fe88c77f867913b0
parentdc580d23af0d273e443b13d7457c7b675f648af4
regulator: qcom_spmi: Only use selector based regulator ops

Mixing raw voltage and selector based regulator ops is
inconsistent. This driver already supports some selector based
ops via the list_voltage and set_voltage_time_sel ops but it uses
raw voltage ops for get_voltage and set_voltage. This causes
problems for regulator_set_voltage() and automatic insertion of
slewing delays because set_voltage_time_sel() is only used if the
regulator ops are all selector based. Put another way, delays
aren't happening at all right now when we should be waiting for
voltages to settle. Let's move to pure selector based regulator
ops so that the delays are inserted properly.

Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/qcom_spmi-regulator.c