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

staging:iio:impedance-analyzer:ad5933 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 bbdb9555
...@@ -109,15 +109,44 @@ static struct ad5933_platform_data ad5933_default_pdata = { ...@@ -109,15 +109,44 @@ static struct ad5933_platform_data ad5933_default_pdata = {
}; };
static struct iio_chan_spec ad5933_channels[] = { static struct iio_chan_spec ad5933_channels[] = {
IIO_CHAN(IIO_TEMP, 0, 1, 1, NULL, 0, 0, 0, {
0, AD5933_REG_TEMP_DATA, IIO_ST('s', 14, 16, 0), 0), .type = IIO_TEMP,
/* Ring Channels */ .indexed = 1,
IIO_CHAN(IIO_VOLTAGE, 0, 1, 0, "real_raw", 0, 0, .processed_val = 1,
IIO_CHAN_INFO_SCALE_SEPARATE_BIT, .channel = 0,
AD5933_REG_REAL_DATA, 0, IIO_ST('s', 16, 16, 0), 0), .address = AD5933_REG_TEMP_DATA,
IIO_CHAN(IIO_VOLTAGE, 0, 1, 0, "imag_raw", 0, 0, .scan_type = {
IIO_CHAN_INFO_SCALE_SEPARATE_BIT, .sign = 's',
AD5933_REG_IMAG_DATA, 1, IIO_ST('s', 16, 16, 0), 0), .realbits = 14,
.storagebits = 16,
},
}, { /* Ring Channels */
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 0,
.extend_name = "real_raw",
.info_mask = IIO_CHAN_INFO_SCALE_SEPARATE_BIT,
.address = AD5933_REG_REAL_DATA,
.scan_index = 0,
.scan_type = {
.sign = 's',
.realbits = 16,
.storagebits = 16,
},
}, {
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 0,
.extend_name = "imag_raw",
.info_mask = IIO_CHAN_INFO_SCALE_SEPARATE_BIT,
.address = AD5933_REG_IMAG_DATA,
.scan_index = 1,
.scan_type = {
.sign = 's',
.realbits = 16,
.storagebits = 16,
},
},
}; };
static int ad5933_i2c_write(struct i2c_client *client, static int ad5933_i2c_write(struct i2c_client *client,
......
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