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

staging: iio: tsl2563 move to new event numbering scheme and remove old definitions

Signed-off-by: default avatarJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent deb02fc5
...@@ -2,6 +2,4 @@ ...@@ -2,6 +2,4 @@
/* Light to digital sensor attributes */ /* Light to digital sensor attributes */
#define IIO_EVENT_CODE_LIGHT_THRESH IIO_EVENT_CODE_LIGHT_BASE
...@@ -706,7 +706,10 @@ static void tsl2563_int_bh(struct work_struct *work_s) ...@@ -706,7 +706,10 @@ static void tsl2563_int_bh(struct work_struct *work_s)
u8 cmd = TSL2563_CMD | TSL2563_CLEARINT; u8 cmd = TSL2563_CMD | TSL2563_CLEARINT;
iio_push_event(chip->indio_dev, 0, iio_push_event(chip->indio_dev, 0,
IIO_EVENT_CODE_LIGHT_BASE, IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_LIGHT,
0,
IIO_EV_TYPE_THRESH,
IIO_EV_DIR_EITHER),
chip->event_timestamp); chip->event_timestamp);
/* reenable_irq */ /* reenable_irq */
......
...@@ -294,7 +294,6 @@ struct iio_const_attr { ...@@ -294,7 +294,6 @@ struct iio_const_attr {
#define IIO_EVENT_CODE_ACCEL_BASE 300 #define IIO_EVENT_CODE_ACCEL_BASE 300
#define IIO_EVENT_CODE_GYRO_BASE 400 #define IIO_EVENT_CODE_GYRO_BASE 400
#define IIO_EVENT_CODE_MISC_BASE 600 #define IIO_EVENT_CODE_MISC_BASE 600
#define IIO_EVENT_CODE_LIGHT_BASE 700
#define IIO_EVENT_CODE_DEVICE_SPECIFIC 1000 #define IIO_EVENT_CODE_DEVICE_SPECIFIC 1000
......
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