staging:iio:ad7887: Allow to use internal ref in two channel mode
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 5 Nov 2012 09:56:00 +0000 (09:56 +0000)
committerJonathan Cameron <jic23@kernel.org>
Mon, 5 Nov 2012 20:39:53 +0000 (20:39 +0000)
commitfce7c3eac7d4ca77ada5bf8332f867219fbb5068
tree2ea29bf0e7bd4f98244ef346790f151d3ed57b09
parent5daa751f89eb3e73424d0cb5c204f9e0bc14e25c
staging:iio:ad7887: Allow to use internal ref in two channel mode

While it is not recommended to use the internal reference in two channel mode in
order to obtain optimal performance it is still possible to use it.

While we are at it also get rid of the duplicate tx_cmd_buf entries. There are
only two unique entries. One for channel 1 and one for channel 2.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7887.c