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>
This commit is contained in:
parent
a3ef65d322
commit
15e3276fd0
|
@ -441,17 +441,17 @@ static const struct iio_chan_spec ad7152_channels[] = {
|
||||||
(1 << IIO_CHAN_INFO_SCALE_SEPARATE),
|
(1 << IIO_CHAN_INFO_SCALE_SEPARATE),
|
||||||
}, {
|
}, {
|
||||||
.type = IIO_CAPACITANCE,
|
.type = IIO_CAPACITANCE,
|
||||||
|
.differential = 1,
|
||||||
.indexed = 1,
|
.indexed = 1,
|
||||||
.channel = 1,
|
.channel = 0,
|
||||||
|
.channel2 = 2,
|
||||||
.info_mask = (1 << IIO_CHAN_INFO_CALIBSCALE_SEPARATE) |
|
.info_mask = (1 << IIO_CHAN_INFO_CALIBSCALE_SEPARATE) |
|
||||||
(1 << IIO_CHAN_INFO_CALIBBIAS_SEPARATE) |
|
(1 << IIO_CHAN_INFO_CALIBBIAS_SEPARATE) |
|
||||||
(1 << IIO_CHAN_INFO_SCALE_SEPARATE),
|
(1 << IIO_CHAN_INFO_SCALE_SEPARATE),
|
||||||
}, {
|
}, {
|
||||||
.type = IIO_CAPACITANCE,
|
.type = IIO_CAPACITANCE,
|
||||||
.differential = 1,
|
|
||||||
.indexed = 1,
|
.indexed = 1,
|
||||||
.channel = 0,
|
.channel = 1,
|
||||||
.channel2 = 2,
|
|
||||||
.info_mask = (1 << IIO_CHAN_INFO_CALIBSCALE_SEPARATE) |
|
.info_mask = (1 << IIO_CHAN_INFO_CALIBSCALE_SEPARATE) |
|
||||||
(1 << IIO_CHAN_INFO_CALIBBIAS_SEPARATE) |
|
(1 << IIO_CHAN_INFO_CALIBBIAS_SEPARATE) |
|
||||||
(1 << IIO_CHAN_INFO_SCALE_SEPARATE),
|
(1 << IIO_CHAN_INFO_SCALE_SEPARATE),
|
||||||
|
|
Loading…
Reference in a new issue