Commit 31bf47d5 authored by Jonathan Cameron's avatar Jonathan Cameron Committed by Greg Kroah-Hartman

staging:iio:adc:ad7887 stop using IIO_CHAN macro.

It's going away.
Signed-off-by: default avatarJonathan Cameron <jic23@cam.ac.uk>
Acked-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3f0676a8
...@@ -71,14 +71,24 @@ static const struct ad7887_chip_info ad7887_chip_info_tbl[] = { ...@@ -71,14 +71,24 @@ static const struct ad7887_chip_info ad7887_chip_info_tbl[] = {
* More devices added in future * More devices added in future
*/ */
[ID_AD7887] = { [ID_AD7887] = {
.channel[0] = IIO_CHAN(IIO_VOLTAGE, 0, 1, 0, NULL, 1, 0, .channel[0] = {
(1 << IIO_CHAN_INFO_SCALE_SHARED), .type = IIO_VOLTAGE,
1, 1, IIO_ST('u', 12, 16, 0), 0), .indexed = 1,
.channel = 1,
.channel[1] = IIO_CHAN(IIO_VOLTAGE, 0, 1, 0, NULL, 0, 0, .info_mask = (1 << IIO_CHAN_INFO_SCALE_SHARED),
(1 << IIO_CHAN_INFO_SCALE_SHARED), .address = 1,
0, 0, IIO_ST('u', 12, 16, 0), 0), .scan_index = 1,
.scan_type = IIO_ST('u', 12, 16, 0),
},
.channel[1] = {
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 0,
.info_mask = (1 << IIO_CHAN_INFO_SCALE_SHARED),
.address = 0,
.scan_index = 0,
.scan_type = IIO_ST('u', 12, 16, 0),
},
.channel[2] = IIO_CHAN_SOFT_TIMESTAMP(2), .channel[2] = IIO_CHAN_SOFT_TIMESTAMP(2),
.int_vref_mv = 2500, .int_vref_mv = 2500,
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment