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

staging:iio:accel:adis16240 unwind use of IIO_CHAN macro.

This macro is being removed to simplify ongoing maintenance
so we need to unwind and remaining users.
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f2007e58
...@@ -468,33 +468,82 @@ static int adis16240_write_raw(struct iio_dev *indio_dev, ...@@ -468,33 +468,82 @@ static int adis16240_write_raw(struct iio_dev *indio_dev,
} }
static struct iio_chan_spec adis16240_channels[] = { static struct iio_chan_spec adis16240_channels[] = {
IIO_CHAN(IIO_VOLTAGE, 0, 1, 0, "supply", 0, 0, {
IIO_CHAN_INFO_SCALE_SEPARATE_BIT, .type = IIO_VOLTAGE,
in_supply, ADIS16240_SCAN_SUPPLY, .indexed = 1,
IIO_ST('u', 10, 16, 0), 0), .channel = 0,
IIO_CHAN(IIO_VOLTAGE, 0, 1, 0, NULL, 1, 0, .extend_name = "supply",
0, .info_mask = IIO_CHAN_INFO_SCALE_SEPARATE_BIT,
in_aux, ADIS16240_SCAN_AUX_ADC, .address = in_supply,
IIO_ST('u', 10, 16, 0), 0), .scan_index = ADIS16240_SCAN_SUPPLY,
IIO_CHAN(IIO_ACCEL, 1, 0, 0, NULL, 0, IIO_MOD_X, .scan_type = {
IIO_CHAN_INFO_SCALE_SHARED_BIT | .sign = 'u',
.realbits = 10,
.storagebits = 16,
},
}, {
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 1,
.address = in_aux,
.scan_index = ADIS16240_SCAN_AUX_ADC,
.scan_type = {
.sign = 'u',
.realbits = 10,
.storagebits = 16,
},
}, {
.type = IIO_ACCEL,
.modified = 1,
.channel2 = IIO_MOD_X,
.info_mask = IIO_CHAN_INFO_SCALE_SHARED_BIT |
IIO_CHAN_INFO_CALIBBIAS_SEPARATE_BIT, IIO_CHAN_INFO_CALIBBIAS_SEPARATE_BIT,
accel_x, ADIS16240_SCAN_ACC_X, .address = accel_x,
IIO_ST('s', 10, 16, 0), 0), .scan_index = ADIS16240_SCAN_ACC_X,
IIO_CHAN(IIO_ACCEL, 1, 0, 0, NULL, 0, IIO_MOD_Y, .scan_type = {
IIO_CHAN_INFO_SCALE_SHARED_BIT | .sign = 's',
.realbits = 10,
.storagebits = 16,
},
}, {
.type = IIO_ACCEL,
.modified = 1,
.channel2 = IIO_MOD_Y,
.info_mask = IIO_CHAN_INFO_SCALE_SHARED_BIT |
IIO_CHAN_INFO_CALIBBIAS_SEPARATE_BIT, IIO_CHAN_INFO_CALIBBIAS_SEPARATE_BIT,
accel_y, ADIS16240_SCAN_ACC_Y, .address = accel_y,
IIO_ST('s', 10, 16, 0), 0), .scan_index = ADIS16240_SCAN_ACC_Y,
IIO_CHAN(IIO_ACCEL, 1, 0, 0, NULL, 0, IIO_MOD_Z, .scan_type = {
IIO_CHAN_INFO_SCALE_SHARED_BIT | .sign = 's',
.realbits = 10,
.storagebits = 16,
},
}, {
.type = IIO_ACCEL,
.modified = 1,
.channel2 = IIO_MOD_Z,
.info_mask = IIO_CHAN_INFO_SCALE_SHARED_BIT |
IIO_CHAN_INFO_CALIBBIAS_SEPARATE_BIT, IIO_CHAN_INFO_CALIBBIAS_SEPARATE_BIT,
accel_z, ADIS16240_SCAN_ACC_Z, .address = accel_z,
IIO_ST('s', 10, 16, 0), 0), .scan_index = ADIS16240_SCAN_ACC_Z,
IIO_CHAN(IIO_TEMP, 0, 1, 0, NULL, 0, 0, .scan_type = {
IIO_CHAN_INFO_SCALE_SEPARATE_BIT, .sign = 's',
temp, ADIS16240_SCAN_TEMP, .realbits = 10,
IIO_ST('u', 10, 16, 0), 0), .storagebits = 16,
},
}, {
.type = IIO_TEMP,
.indexed = 1,
.channel = 0,
.info_mask = IIO_CHAN_INFO_SCALE_SEPARATE_BIT,
.address = temp,
.scan_index = ADIS16240_SCAN_TEMP,
.scan_type = {
.sign = 'u',
.realbits = 10,
.storagebits = 16,
},
},
IIO_CHAN_SOFT_TIMESTAMP(6) IIO_CHAN_SOFT_TIMESTAMP(6)
}; };
......
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