diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-06-26 10:57:51 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-07-03 20:28:04 +0100 |
commit | e113d792d56d4b720b3d84c122b6af84c3bfa094 (patch) | |
tree | 3dbf10393fed4c59569afc93f777b96e0d9b0af4 /tools/perf/util/trace-event-scripting.c | |
parent | c5f3939b8fe0c358d35397982e5afdef112afc81 (diff) |
regulator: core: Check that the selector from map_voltage() is valid
Lots of regulator drivers have checks in their map_voltage() functions
to verify that the result of the mapping is in the range originally
specified. Factor these out in the core and provide a bit of extra
defensiveness for other drivers by doing the check in the core.
Since we're now doing a list_voltage() earlier move the current mapping
back to a voltage out into the set_voltage() call to save redoing it.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions