summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorBrian Norris <briannorris@chromium.org>2018-11-05 14:34:57 +0200
committerKalle Valo <kvalo@codeaurora.org>2018-11-06 18:16:56 +0200
commit1a1a0d5ccefca6f3f7417b448793c753a610da0c (patch)
treee296cdf745c8de022b2c7daf92e2faa0ed792b72 /tools/perf/scripts/python/exported-sql-viewer.py
parent887a3dcf589389756bad51b34b69d4e9e9b2aa86 (diff)
ath10k: snoc: fix unabalanced regulator error handling
If a regulator fails to set its voltage, we end up with an unbalanced call to regulator_disable(), because the error path starts with the current regulator (which was never enabled). Factor out the "on" function to perform (and unwind if failed) a single regulator at a time, and then main loop (ath10k_snoc_vreg_on()) can just worry about unwinding the regulators that were already enabled. It also helps to factor out the "off" function, to avoid repeating some code here. Signed-off-by: Brian Norris <briannorris@chromium.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions