summaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/light
diff options
context:
space:
mode:
authorJonathan Cameron2011-08-12 18:56:04 +0200
committerGreg Kroah-Hartman2011-08-23 22:34:24 +0200
commitc4b14d99bbc93c9fa03b5934a07e95594efe7a93 (patch)
treee1e3e9980a1def02b67d2f861b58616561a7bd62 /drivers/staging/iio/light
parentstaging:iio: Introduce iio_core.h and move all core only stuff out of iio.h. (diff)
downloadkernel-qcow2-linux-c4b14d99bbc93c9fa03b5934a07e95594efe7a93.tar.gz
kernel-qcow2-linux-c4b14d99bbc93c9fa03b5934a07e95594efe7a93.tar.xz
kernel-qcow2-linux-c4b14d99bbc93c9fa03b5934a07e95594efe7a93.zip
staging:iio:events: use IIO_<TYPE> and IIO_MOD_<> instead of IIO_EV_CLASS_<TYPE> etc
The original definitions were duplicated to reduce tree churn during introduction of chan_spec registration. Now there is no point in maintaining the two sets of definitions. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/light')
-rw-r--r--drivers/staging/iio/light/tsl2563.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/light/tsl2563.c b/drivers/staging/iio/light/tsl2563.c
index bb96857f33f4..665a7441b2ee 100644
--- a/drivers/staging/iio/light/tsl2563.c
+++ b/drivers/staging/iio/light/tsl2563.c
@@ -596,7 +596,7 @@ static irqreturn_t tsl2563_event_handler(int irq, void *private)
struct tsl2563_chip *chip = iio_priv(dev_info);
iio_push_event(dev_info, 0,
- IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_LIGHT,
+ IIO_UNMOD_EVENT_CODE(IIO_LIGHT,
0,
IIO_EV_TYPE_THRESH,
IIO_EV_DIR_EITHER),