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

Commit 820e882a authored by Jonathan Cameron's avatar Jonathan Cameron Committed by Greg Kroah-Hartman
Browse files

staging: iio: adc events update to new numbering system

parent f4704d77
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -34,5 +34,9 @@
#define IIO_CONST_ATTR_IN_NAMED_SCALE(_name, _string)			\
	IIO_CONST_ATTR(in_##_name##_scale, _string)

#define IIO_EVENT_CODE_IN_HIGH_THRESH(a) (IIO_EVENT_CODE_ADC_BASE  + a)
#define IIO_EVENT_CODE_IN_LOW_THRESH(a) (IIO_EVENT_CODE_ADC_BASE  + a + 32)
#define IIO_EVENT_CODE_IN_HIGH_THRESH(a)				\
	IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_IN, a, IIO_EV_TYPE_THRESH,	\
			     IIO_EV_DIR_RISING)
#define IIO_EVENT_CODE_IN_LOW_THRESH(a)				     \
	IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_IN, a, IIO_EV_TYPE_THRESH, \
			     IIO_EV_DIR_FALLING)
+0 −1
Original line number Diff line number Diff line
@@ -285,7 +285,6 @@ struct iio_const_attr {
#define IIO_EVENT_CODE_RING_BASE	200
#define IIO_EVENT_CODE_ACCEL_BASE	300
#define IIO_EVENT_CODE_GYRO_BASE	400
#define IIO_EVENT_CODE_ADC_BASE		500
#define IIO_EVENT_CODE_MISC_BASE	600
#define IIO_EVENT_CODE_LIGHT_BASE	700