diff options
author | 2010-12-16 13:59:10 +0000 | |
---|---|---|
committer | 2011-01-12 14:33:05 +0000 | |
commit | ded06a5270ddd6c3c3e25d9ddcaaaa4cb8385c2f (patch) | |
tree | a845d31f0bdc663fbbd3fde7dcd9ed638b963c66 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | regulator: Provide a selector based set_voltage_sel() operation (diff) | |
download | wireguard-linux-ded06a5270ddd6c3c3e25d9ddcaaaa4cb8385c2f.tar.xz wireguard-linux-ded06a5270ddd6c3c3e25d9ddcaaaa4cb8385c2f.zip |
regulator: Only notify voltage changes when they succeed
Currently we notify a voltage change whenever we exit set_voltage(),
even if the change failed for some reason (eg, a constraints issue).
This shouldn't cause any substantial ill effects but is wasteful as
listeners get notified on noops. Fix this by moving the notification
into _do_set_voltage() and only notifying if we don't return an error.
Reported-by: Saravana Kannan <skannan@codeaurora.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions