staging:iio:buffer - remove unused event code for buffer events.
authorJonathan Cameron <jic23@cam.ac.uk>
Wed, 18 May 2011 13:42:19 +0000 (14:42 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 19 May 2011 23:15:01 +0000 (16:15 -0700)
These events are no longer passed up to userspace.

ad7745 - was using these events to indicate directly dataready
events.  I'm not sure when it ever makes sense to push these
to userspace so for now I've taken them to event codes 0 and 1
until someone has time to make this driver do something more
standard. (they were arbitary before, they still are, be it
in a different way!)

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/adc/ad7745.c
drivers/staging/iio/iio.h
drivers/staging/iio/sysfs.h

index afa2648e08ff11da27a7d6d4038334a978981719..98b510dcecc85504ce22176154fd25bb46ff7a22 100644 (file)
@@ -522,8 +522,8 @@ static const struct attribute_group ad774x_attribute_group = {
  * data ready events
  */
 
-#define IIO_EVENT_CODE_CAP_RDY     IIO_BUFFER_EVENT_CODE(0)
-#define IIO_EVENT_CODE_VT_RDY      IIO_BUFFER_EVENT_CODE(1)
+#define IIO_EVENT_CODE_CAP_RDY     0
+#define IIO_EVENT_CODE_VT_RDY      1
 
 #define IIO_EVENT_ATTR_CAP_RDY_SH(_evlist, _show, _store, _mask)       \
        IIO_EVENT_ATTR_SH(cap_rdy, _evlist, _show, _store, _mask)
index 1ad9480fc694be4bd10fab636c93d28f0606e29c..4dc4ff0232a4b381e2a84d8d5712b2c44e32ab29 100644 (file)
 /* naughty temporary hack to match these against the event version
    - need to flattern these together */
 enum iio_chan_type {
-       /* Need this here for now to support buffer events
-        * set to 0  to avoid changes to ring_generic.c */
-       IIO_BUFFER = 0,
-
        /* real channel types */
        IIO_IN,
        IIO_CURRENT,
index 9b855f3f5320f393186841d6de7940d496765451..dd79b58442123ebba25a7a337c64b25380f7ad2f 100644 (file)
@@ -170,7 +170,6 @@ struct iio_const_attr {
 #define IIO_EV_CLASS_LIGHT             IIO_LIGHT
 #define IIO_EV_CLASS_PROXIMITY         IIO_PROXIMITY
 #define IIO_EV_CLASS_TEMP              IIO_TEMP
-#define IIO_EV_CLASS_BUFFER            IIO_BUFFER
 
 #define IIO_EV_MOD_X                   IIO_MOD_X
 #define IIO_EV_MOD_Y                   IIO_MOD_Y