diff options
| author | Lars-Peter Clausen <[email protected]> | 2011-10-07 10:31:42 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2011-10-11 09:58:59 -0600 |
| commit | a45186c0cdd35e6b79aeeff6e535c5d5c20ac93d (patch) | |
| tree | 3902d0fd669938c79ceafaf5f82b13f2ee06f5c4 /tools/perf/scripts/python/netdev-times.py | |
| parent | 638e59fc8c867b44dfbe20c235df00384814cb5e (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/netdev-times.py')
0 files changed, 0 insertions, 0 deletions