staging:iio: ad7152: fix channel assignment for AD7153
authorMichael Hennerich <michael.hennerich@analog.com>
Fri, 2 Sep 2011 16:25:47 +0000 (17:25 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Sep 2011 23:03:38 +0000 (16:03 -0700)
commit15e3276fd020621236e8443a599b80ae28d6832b
treeb1a5c2d3a26b8051c6f25fcb9cf93841c4bc92f4
parenta3ef65d3225f1ff378da4798b9c0c68f13265900
staging:iio: ad7152: fix channel assignment for AD7153

In case the AD7153 is selected we need to make sure we provide channel info
for the first capacitance input in both single ended and differential
configuration.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/adc/ad7152.c