Skip to content

Commit

Permalink
staging: iio: tsl2563 move to new event numbering scheme and remove o…
Browse files Browse the repository at this point in the history
…ld definitions

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Jonathan Cameron authored and Greg Kroah-Hartman committed Oct 8, 2010
1 parent deb02fc commit da1d8b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 0 additions & 2 deletions drivers/staging/iio/light/light.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

/* Light to digital sensor attributes */

#define IIO_EVENT_CODE_LIGHT_THRESH IIO_EVENT_CODE_LIGHT_BASE


7 changes: 5 additions & 2 deletions drivers/staging/iio/light/tsl2563.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,11 @@ static void tsl2563_int_bh(struct work_struct *work_s)
u8 cmd = TSL2563_CMD | TSL2563_CLEARINT;

iio_push_event(chip->indio_dev, 0,
IIO_EVENT_CODE_LIGHT_BASE,
chip->event_timestamp);
IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_LIGHT,
0,
IIO_EV_TYPE_THRESH,
IIO_EV_DIR_EITHER),
chip->event_timestamp);

/* reenable_irq */
enable_irq(chip->client->irq);
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/iio/sysfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ struct iio_const_attr {
#define IIO_EVENT_CODE_ACCEL_BASE 300
#define IIO_EVENT_CODE_GYRO_BASE 400
#define IIO_EVENT_CODE_MISC_BASE 600
#define IIO_EVENT_CODE_LIGHT_BASE 700

#define IIO_EVENT_CODE_DEVICE_SPECIFIC 1000

Expand Down

0 comments on commit da1d8b6

Please sign in to comment.