Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -85,6 +85,8 @@ static const char * const iio_modifier_names[] = {
	[IIO_MOD_LIGHT_GREEN] = "green",
	[IIO_MOD_LIGHT_BLUE] = "blue",
	[IIO_MOD_QUATERNION] = "quaternion",
	[IIO_MOD_TEMP_AMBIENT] = "ambient",
	[IIO_MOD_TEMP_OBJECT] = "object",
};

/* relies on pairs of these shared then separate */
+2 −0
Original line number Diff line number Diff line
@@ -54,6 +54,8 @@ enum iio_modifier {
	IIO_MOD_LIGHT_GREEN,
	IIO_MOD_LIGHT_BLUE,
	IIO_MOD_QUATERNION,
	IIO_MOD_TEMP_AMBIENT,
	IIO_MOD_TEMP_OBJECT,
};

enum iio_event_type {