staging:iio:adc: unused header removals.
authorJonathan Cameron <jic23@cam.ac.uk>
Fri, 12 Aug 2011 16:08:43 +0000 (17:08 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 20:31:07 +0000 (13:31 -0700)
More headers now not needed after iio_chan_spec conversions.
A couple of drivers were using helpers from adc.h.

Given these were trivial, they are pushed down into the drivers.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/adc/ad7298_core.c
drivers/staging/iio/adc/ad7476_core.c
drivers/staging/iio/adc/ad7606_core.c
drivers/staging/iio/adc/ad7780.c
drivers/staging/iio/adc/ad7793.c
drivers/staging/iio/adc/ad7887_core.c
drivers/staging/iio/adc/ad799x_core.c
drivers/staging/iio/adc/max1363_core.c

index b8e4ae29b0b5cfca99236a425ce444fecb95791a..21d1931edb38b76967c3954c79db58754dd3c6c7 100644 (file)
@@ -18,7 +18,6 @@
 #include "../iio.h"
 #include "../sysfs.h"
 #include "../ring_generic.h"
-#include "adc.h"
 
 #include "ad7298.h"
 
index c21089894d28b70c9d4e7277d0bdcf089dcf8c9e..f2fdd48303e381d3c20a87db62dd6c8ed237e077 100644 (file)
@@ -17,7 +17,6 @@
 #include "../iio.h"
 #include "../sysfs.h"
 #include "../ring_generic.h"
-#include "adc.h"
 
 #include "ad7476.h"
 
index 459371ae4dccd10de976f9b2aa5b7a7b60877553..dcdb180d7e75b11a6c06f552a46bc7338eebacb9 100644 (file)
@@ -20,7 +20,6 @@
 #include "../iio.h"
 #include "../sysfs.h"
 #include "../ring_generic.h"
-#include "adc.h"
 
 #include "ad7606.h"
 
index e0c7b6cc05c7d511eeb7a2f464b94a958a672408..f90cdeacadf65337abbceafe539775978f07beed 100644 (file)
@@ -20,7 +20,6 @@
 #include "../iio.h"
 #include "../sysfs.h"
 #include "../ring_generic.h"
-#include "adc.h"
 
 #include "ad7780.h"
 
index 90f6c039d6c6328bfd7459b98d811f9730b3c443..ab6f10932bec1d1716e250329c0b27fdffe1f6d2 100644 (file)
@@ -22,7 +22,6 @@
 #include "../ring_generic.h"
 #include "../ring_sw.h"
 #include "../trigger.h"
-#include "adc.h"
 
 #include "ad7793.h"
 
index 3d9121e5c37d69b44f4e2c2ee1c9424cab984e7e..a7da9e68ebaafd7c0d5ad0375d881de06e030873 100644 (file)
@@ -17,7 +17,7 @@
 #include "../iio.h"
 #include "../sysfs.h"
 #include "../ring_generic.h"
-#include "adc.h"
+
 
 #include "ad7887.h"
 
index 92cfe2e3ea4a81f5bb4e907ecb30974287557bec..d42d61d606390f7d24f2fb81ba9e98e5cfd8e16b 100644 (file)
@@ -34,9 +34,8 @@
 
 #include "../iio.h"
 #include "../sysfs.h"
-
 #include "../ring_generic.h"
-#include "adc.h"
+
 #include "ad799x.h"
 
 /*
@@ -336,8 +335,14 @@ static irqreturn_t ad799x_event_handler(int irq, void *private)
                if (status & (1 << i))
                        iio_push_event(indio_dev, 0,
                                       i & 0x1 ?
-                                      IIO_EVENT_CODE_IN_HIGH_THRESH(i >> 1) :
-                                      IIO_EVENT_CODE_IN_LOW_THRESH(i >> 1),
+                                      IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_IN,
+                                                           (i >> 1),
+                                                           IIO_EV_TYPE_THRESH,
+                                                           IIO_EV_DIR_RISING) :
+                                      IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_IN,
+                                                           (i >> 1),
+                                                           IIO_EV_TYPE_THRESH,
+                                                           IIO_EV_DIR_FALLING),
                                       iio_get_time_ns());
        }
 
index d93b7a917b994581daed988db87ab55cbfb8c86e..9525aec58730b385185b3ee304814abc9a0aa406 100644 (file)
@@ -33,9 +33,8 @@
 
 #include "../iio.h"
 #include "../sysfs.h"
-
 #include "../ring_generic.h"
-#include "adc.h"
+
 #include "max1363.h"
 
 #define MAX1363_MODE_SINGLE(_num, _mask) {                             \
@@ -592,10 +591,22 @@ static int max1363_write_thresh(struct iio_dev *indio_dev,
 }
 
 static const int max1363_event_codes[] = {
-       IIO_EVENT_CODE_IN_LOW_THRESH(3), IIO_EVENT_CODE_IN_HIGH_THRESH(3),
-       IIO_EVENT_CODE_IN_LOW_THRESH(2), IIO_EVENT_CODE_IN_HIGH_THRESH(2),
-       IIO_EVENT_CODE_IN_LOW_THRESH(1), IIO_EVENT_CODE_IN_HIGH_THRESH(1),
-       IIO_EVENT_CODE_IN_LOW_THRESH(0), IIO_EVENT_CODE_IN_HIGH_THRESH(0)
+       IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_IN, 0,
+                            IIO_EV_TYPE_THRESH, IIO_EV_DIR_FALLING),
+       IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_IN, 1,
+                            IIO_EV_TYPE_THRESH, IIO_EV_DIR_FALLING),
+       IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_IN, 2,
+                            IIO_EV_TYPE_THRESH, IIO_EV_DIR_FALLING),
+       IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_IN, 3,
+                            IIO_EV_TYPE_THRESH, IIO_EV_DIR_FALLING),
+       IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_IN, 0,
+                            IIO_EV_TYPE_THRESH, IIO_EV_DIR_RISING),
+       IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_IN, 1,
+                            IIO_EV_TYPE_THRESH, IIO_EV_DIR_RISING),
+       IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_IN, 2,
+                            IIO_EV_TYPE_THRESH, IIO_EV_DIR_RISING),
+       IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_IN, 3,
+                            IIO_EV_TYPE_THRESH, IIO_EV_DIR_RISING),
 };
 
 static irqreturn_t max1363_event_handler(int irq, void *private)