Commit 06d5199d authored by Jonathan Cameron's avatar Jonathan Cameron

staging:iio: Add some missing peak elements to the info_mask

These are supported by raw_read but not actually there.
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
Acked-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
parent 467d0bec
...@@ -500,7 +500,8 @@ static struct iio_chan_spec adis16240_channels[] = { ...@@ -500,7 +500,8 @@ static struct iio_chan_spec adis16240_channels[] = {
.channel2 = IIO_MOD_X, .channel2 = IIO_MOD_X,
.info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT | .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT |
IIO_CHAN_INFO_SCALE_SHARED_BIT | IIO_CHAN_INFO_SCALE_SHARED_BIT |
IIO_CHAN_INFO_CALIBBIAS_SEPARATE_BIT, IIO_CHAN_INFO_CALIBBIAS_SEPARATE_BIT |
IIO_CHAN_INFO_PEAK_SEPARATE_BIT,
.address = accel_x, .address = accel_x,
.scan_index = ADIS16240_SCAN_ACC_X, .scan_index = ADIS16240_SCAN_ACC_X,
.scan_type = { .scan_type = {
...@@ -514,7 +515,8 @@ static struct iio_chan_spec adis16240_channels[] = { ...@@ -514,7 +515,8 @@ static struct iio_chan_spec adis16240_channels[] = {
.channel2 = IIO_MOD_Y, .channel2 = IIO_MOD_Y,
.info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT | .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT |
IIO_CHAN_INFO_SCALE_SHARED_BIT | IIO_CHAN_INFO_SCALE_SHARED_BIT |
IIO_CHAN_INFO_CALIBBIAS_SEPARATE_BIT, IIO_CHAN_INFO_CALIBBIAS_SEPARATE_BIT |
IIO_CHAN_INFO_PEAK_SEPARATE_BIT,
.address = accel_y, .address = accel_y,
.scan_index = ADIS16240_SCAN_ACC_Y, .scan_index = ADIS16240_SCAN_ACC_Y,
.scan_type = { .scan_type = {
...@@ -528,7 +530,8 @@ static struct iio_chan_spec adis16240_channels[] = { ...@@ -528,7 +530,8 @@ static struct iio_chan_spec adis16240_channels[] = {
.channel2 = IIO_MOD_Z, .channel2 = IIO_MOD_Z,
.info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT | .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT |
IIO_CHAN_INFO_SCALE_SHARED_BIT | IIO_CHAN_INFO_SCALE_SHARED_BIT |
IIO_CHAN_INFO_CALIBBIAS_SEPARATE_BIT, IIO_CHAN_INFO_CALIBBIAS_SEPARATE_BIT |
IIO_CHAN_INFO_PEAK_SEPARATE_BIT,
.address = accel_z, .address = accel_z,
.scan_index = ADIS16240_SCAN_ACC_Z, .scan_index = ADIS16240_SCAN_ACC_Z,
.scan_type = { .scan_type = {
......
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