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

staging:iio: Add capacitance type and average_raw chan info.

These are both needed for CAPADCs
Signed-off-by: default avatarJonathan Cameron <jic23@cam.ac.uk>
Acked-by: default avatarMichael Hennerich <Michael.Hennerich@analog.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c04ea8ae
...@@ -42,6 +42,7 @@ enum iio_chan_type { ...@@ -42,6 +42,7 @@ enum iio_chan_type {
IIO_ROT, IIO_ROT,
IIO_ANGL, IIO_ANGL,
IIO_TIMESTAMP, IIO_TIMESTAMP,
IIO_CAPACITANCE,
}; };
/* Nasty hack to avoid massive churn */ /* Nasty hack to avoid massive churn */
...@@ -81,6 +82,8 @@ enum iio_chan_info_enum { ...@@ -81,6 +82,8 @@ enum iio_chan_info_enum {
IIO_CHAN_INFO_PEAK_SCALE_SEPARATE, IIO_CHAN_INFO_PEAK_SCALE_SEPARATE,
IIO_CHAN_INFO_QUADRATURE_CORRECTION_RAW_SHARED, IIO_CHAN_INFO_QUADRATURE_CORRECTION_RAW_SHARED,
IIO_CHAN_INFO_QUADRATURE_CORRECTION_RAW_SEPARATE, IIO_CHAN_INFO_QUADRATURE_CORRECTION_RAW_SEPARATE,
IIO_CHAN_INFO_AVERAGE_RAW_SHARED,
IIO_CHAN_INFO_AVERAGE_RAW_SEPARATE,
}; };
enum iio_endian { enum iio_endian {
......
...@@ -65,6 +65,7 @@ static const char * const iio_chan_type_name_spec_shared[] = { ...@@ -65,6 +65,7 @@ static const char * const iio_chan_type_name_spec_shared[] = {
[IIO_ROT] = "rot", [IIO_ROT] = "rot",
[IIO_ANGL] = "angl", [IIO_ANGL] = "angl",
[IIO_TIMESTAMP] = "timestamp", [IIO_TIMESTAMP] = "timestamp",
[IIO_CAPACITANCE] = "capacitance",
}; };
static const char * const iio_chan_type_name_spec_complex[] = { static const char * const iio_chan_type_name_spec_complex[] = {
...@@ -89,6 +90,7 @@ static const char * const iio_chan_info_postfix[] = { ...@@ -89,6 +90,7 @@ static const char * const iio_chan_info_postfix[] = {
[IIO_CHAN_INFO_PEAK_SCALE_SHARED/2] = "peak_scale", [IIO_CHAN_INFO_PEAK_SCALE_SHARED/2] = "peak_scale",
[IIO_CHAN_INFO_QUADRATURE_CORRECTION_RAW_SHARED/2] [IIO_CHAN_INFO_QUADRATURE_CORRECTION_RAW_SHARED/2]
= "quadrature_correction_raw", = "quadrature_correction_raw",
[IIO_CHAN_INFO_AVERAGE_RAW_SHARED/2] = "mean_raw",
}; };
/** /**
......
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