Commit 638b43b3 authored by Peter Meerwald's avatar Peter Meerwald Committed by Jonathan Cameron

iio: Add TEMP_AMBIENT and TEMP_OBJECT channel modifiers

useful for contactless temperature sensors to distinguish
between the ambient temperature and the temperature of the object
Signed-off-by: default avatarPeter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 3017d90e
...@@ -85,6 +85,8 @@ static const char * const iio_modifier_names[] = { ...@@ -85,6 +85,8 @@ static const char * const iio_modifier_names[] = {
[IIO_MOD_LIGHT_GREEN] = "green", [IIO_MOD_LIGHT_GREEN] = "green",
[IIO_MOD_LIGHT_BLUE] = "blue", [IIO_MOD_LIGHT_BLUE] = "blue",
[IIO_MOD_QUATERNION] = "quaternion", [IIO_MOD_QUATERNION] = "quaternion",
[IIO_MOD_TEMP_AMBIENT] = "ambient",
[IIO_MOD_TEMP_OBJECT] = "object",
}; };
/* relies on pairs of these shared then separate */ /* relies on pairs of these shared then separate */
......
...@@ -54,6 +54,8 @@ enum iio_modifier { ...@@ -54,6 +54,8 @@ enum iio_modifier {
IIO_MOD_LIGHT_GREEN, IIO_MOD_LIGHT_GREEN,
IIO_MOD_LIGHT_BLUE, IIO_MOD_LIGHT_BLUE,
IIO_MOD_QUATERNION, IIO_MOD_QUATERNION,
IIO_MOD_TEMP_AMBIENT,
IIO_MOD_TEMP_OBJECT,
}; };
enum iio_event_type { enum iio_event_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