diff options
author | Lars-Peter Clausen <[email protected]> | 2011-10-19 17:47:50 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2011-10-19 13:57:01 -0700 |
commit | 9dc9961dca37379fd128508aac37e9f4928ee18f (patch) | |
tree | 5070cc6955f9b060985a4c45fa89f33b57964ca5 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 021c0a381c5c1ae457bb9316669736d2ec66f972 (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 <[email protected]>
Acked-by: Jonathan Cameron <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions