aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLars-Peter Clausen <[email protected]>2011-10-07 10:31:42 +0200
committerGreg Kroah-Hartman <[email protected]>2011-10-11 09:58:59 -0600
commita45186c0cdd35e6b79aeeff6e535c5d5c20ac93d (patch)
tree3902d0fd669938c79ceafaf5f82b13f2ee06f5c4 /tools/perf/scripts/python
parent638e59fc8c867b44dfbe20c235df00384814cb5e (diff)
staging:iio:dac:ad5638: Fix channel address
Commit c6fc806247 ("staging:iio: ABI rework - add in_ or out_ prefix to channnels") added the AD5868_CHANNEL macro to simplify channel initialization. Unfortunately the macro hardcodes the channel's address to AD5686_ADDR_DAC0. As a result writing to any of the channels will change the value of the first channel. This patch fixes the issue by calculating the channel address based on the channel number. 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')
0 files changed, 0 insertions, 0 deletions