linux/drivers/staging/iio
Lars-Peter Clausen a45186c0cd 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 <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-10-11 09:58:59 -06:00
..
accel staging:iio:accel:sca3000 dev_info to indio_dev renaming. 2011-10-11 09:58:59 -06:00
adc staging:iio:adc:naming: dev_info to indio_dev for consistency 2011-10-11 09:58:59 -06:00
addac staging:iio: unwind the IIO_IN -> IIO_VOLTAGE define 2011-09-29 17:32:07 -07:00
dac staging:iio:dac:ad5638: Fix channel address 2011-10-11 09:58:59 -06:00
dds staging:iio:dac/dds/impedance dev_info to indio_dev for consistency 2011-10-11 09:58:59 -06:00
Documentation staging:iio:Documentation gyro -> anglvel updates in attribute names 2011-10-05 13:47:47 -07:00
gyro staging:iio: rename gyro channels to anglvel 2011-10-05 13:47:46 -07:00
impedance-analyzer staging:iio:dac/dds/impedance dev_info to indio_dev for consistency 2011-10-11 09:58:59 -06:00
imu staging:iio: rename gyro channels to anglvel 2011-10-05 13:47:46 -07:00
light Staging: iio/light/tsl2563: fix compile warning 2011-10-11 09:58:58 -06:00
magnetometer staging:iio:magnetometer:ak8975: Fix probe() error-handling 2011-09-26 17:31:55 -07:00
meter staging:iio: unwind the IIO_IN -> IIO_VOLTAGE define 2011-09-29 17:32:07 -07:00
resolver staging:iio:resolver:ad2s1210 cleanup gpio handling. 2011-10-05 13:47:48 -07:00
trigger staging:iio:trigger:sysfs trigger: Add a release function to avoid warning on module removal. 2011-08-24 14:23:41 -07:00
buffer_generic.h staging:iio:core:naming: dev_info to indio_dev for consistency 2011-10-11 09:58:58 -06:00
chrdev.h staging:iio:events - new 64 bit code structure and push out drivers. 2011-09-06 16:02:00 -07:00
iio_core_trigger.h staging:iio:core:naming: dev_info to indio_dev for consistency 2011-10-11 09:58:58 -06:00
iio_core.h staging:iio: Prevent reading from buffer chrdev when device has no buffer. 2011-09-26 17:31:56 -07:00
iio.h staging:iio:core:naming: dev_info to indio_dev for consistency 2011-10-11 09:58:58 -06:00
industrialio-buffer.c staging:iio:core:naming: dev_info to indio_dev for consistency 2011-10-11 09:58:58 -06:00
industrialio-core.c staging:iio:core:naming: dev_info to indio_dev for consistency 2011-10-11 09:58:58 -06:00
industrialio-trigger.c staging:iio:core:naming: dev_info to indio_dev for consistency 2011-10-11 09:58:58 -06:00
Kconfig staging:iio: tree wide IIO_RING_BUFFER config symbol to IIO_BUFFER 2011-09-26 17:31:53 -07:00
kfifo_buf.c staging:iio: replacing term ring with buffer in the IIO core. 2011-09-26 17:31:53 -07:00
kfifo_buf.h staging:iio: replacing term ring with buffer in the IIO core. 2011-09-26 17:31:53 -07:00
Makefile staging:iio: replacing term ring with buffer in the IIO core. 2011-09-26 17:31:53 -07:00
ring_hw.h staging:iio: replacing term ring with buffer in the IIO core. 2011-09-26 17:31:53 -07:00
ring_sw.c staging:iio: replacing term ring with buffer in the IIO core. 2011-09-26 17:31:53 -07:00
ring_sw.h staging:iio: replacing term ring with buffer in the IIO core. 2011-09-26 17:31:53 -07:00
sysfs.h staging:iio:tree wide. abi fixup for in_ out_ prefix introduction. 2011-09-16 20:32:00 +02:00
TODO staging: iio: add ADI info to TODO 2010-11-09 15:46:32 -08:00
trigger_consumer.h staging:iio: treewide rename iio_triggered_ring_* to iio_triggered_buffer_* 2011-09-26 17:31:52 -07:00
trigger.h staging: Add module.h to drivers/staging users 2011-08-25 17:01:20 -07:00