]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Fri, 13 Apr 2018 14:00:41 +0000 (16:00 +0200)
commitfe48cef5d4d3cce0d61cf3e3eff9b3e981748248
treedc1b2b54ec337aaa28fd6c4399a13fd05c6e69a1
parentead0307b067cafd90a445804407112551a587863
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.

Cc: Georgi Djakov <georgi.djakov@linaro.org>
Cc: David Collins <collinsd@codeaurora.org>
Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
drivers/regulator/qcom_spmi-regulator.c