summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2011-10-19 17:47:50 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2011-10-19 13:57:01 -0700
commit9dc9961dca37379fd128508aac37e9f4928ee18f (patch)
tree5070cc6955f9b060985a4c45fa89f33b57964ca5 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf
parent021c0a381c5c1ae457bb9316669736d2ec66f972 (diff)
staging:iio:dac:ad5791: Allow asymmetrical reference voltages
The ad5791 currently assumes that the negative and positive supply have the same absolute value, which is not necessarily true. This patch introduces a offset attribute which will contain the negative supply voltage scaled according to the iio spec. The raw attribute now accepts values in the range of 0 to max instead of -max/2 to max/2. While we are at it also fix the vref span calculation. Since both positive and negative reference voltages are specificed as absolute values we need to add them and not subtract them to get the reference voltage span. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions