staging:iio: Add some missing peak elements to the info_mask
authorJonathan Cameron <jic23@kernel.org>
Sat, 12 May 2012 09:01:01 +0000 (10:01 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 30 Jun 2012 09:12:36 +0000 (10:12 +0100)
These are supported by raw_read but not actually there.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
drivers/staging/iio/accel/adis16240_core.c

index 8b15eaea33814c0b780e82948abede7e0c6164e3..4ba9b1c3bb5accfdbfe2cd775daa7d009fda0c7b 100644 (file)
@@ -500,7 +500,8 @@ static struct iio_chan_spec adis16240_channels[] = {
                .channel2 = IIO_MOD_X,
                .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_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,
                .scan_index = ADIS16240_SCAN_ACC_X,
                .scan_type = {
@@ -514,7 +515,8 @@ static struct iio_chan_spec adis16240_channels[] = {
                .channel2 = IIO_MOD_Y,
                .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_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,
                .scan_index = ADIS16240_SCAN_ACC_Y,
                .scan_type = {
@@ -528,7 +530,8 @@ static struct iio_chan_spec adis16240_channels[] = {
                .channel2 = IIO_MOD_Z,
                .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_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,
                .scan_index = ADIS16240_SCAN_ACC_Z,
                .scan_type = {