staging:iio: Add chan info support for 'peak_raw' attributes.
authorJonathan Cameron <jic23@cam.ac.uk>
Wed, 18 May 2011 13:41:57 +0000 (14:41 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 19 May 2011 23:14:57 +0000 (16:14 -0700)
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/iio.h
drivers/staging/iio/industrialio-core.c

index c6b471cf3b425cac3e4dc1ce233b42ce5b76eeaa..1a6bedc01f4c141d98426732032652a6e4afb52c 100644 (file)
@@ -73,7 +73,11 @@ enum iio_chan_info_enum {
        IIO_CHAN_INFO_CALIBSCALE_SHARED,
        IIO_CHAN_INFO_CALIBSCALE_SEPARATE,
        IIO_CHAN_INFO_CALIBBIAS_SHARED,
-       IIO_CHAN_INFO_CALIBBIAS_SEPARATE
+       IIO_CHAN_INFO_CALIBBIAS_SEPARATE,
+       IIO_CHAN_INFO_PEAK_SHARED,
+       IIO_CHAN_INFO_PEAK_SEPARATE,
+       IIO_CHAN_INFO_PEAK_SCALE_SHARED,
+       IIO_CHAN_INFO_PEAK_SCALE_SEPARATE,
 };
 
 /**
index e943dacf8bfa2cf68c0e1223b72ed7939e5e490f..e3582c9e18c14ad0acfdca3e8e446cc1e8bca66c 100644 (file)
@@ -80,6 +80,8 @@ static const char * const iio_chan_info_postfix[] = {
        [IIO_CHAN_INFO_OFFSET_SHARED/2] = "offset",
        [IIO_CHAN_INFO_CALIBSCALE_SHARED/2] = "calibscale",
        [IIO_CHAN_INFO_CALIBBIAS_SHARED/2] = "calibbias",
+       [IIO_CHAN_INFO_PEAK_SHARED/2] = "peak_raw",
+       [IIO_CHAN_INFO_PEAK_SCALE_SHARED/2] = "peak_scale",
 };
 
 int iio_push_event(struct iio_dev *dev_info,