aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@kernel.org>2012-04-25 10:54:58 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-25 14:01:43 -0400
commit06458e277eac2b8761b0a04d3c808d57be281a2e (patch)
treecba55bcbdd101a3ab84bfe27fccdb9efd18d757e
parent68284a12923f9f8f2741efca10c045e179f2e753 (diff)
IIO: Move core headers to include/linux/iio
Step 1 in moving the IIO core out of staging. Signed-off-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/iio/Documentation/iio_event_monitor.c2
-rw-r--r--drivers/staging/iio/accel/adis16201_core.c6
-rw-r--r--drivers/staging/iio/accel/adis16201_ring.c4
-rw-r--r--drivers/staging/iio/accel/adis16201_trigger.c4
-rw-r--r--drivers/staging/iio/accel/adis16203_core.c6
-rw-r--r--drivers/staging/iio/accel/adis16203_ring.c4
-rw-r--r--drivers/staging/iio/accel/adis16203_trigger.c4
-rw-r--r--drivers/staging/iio/accel/adis16204_core.c6
-rw-r--r--drivers/staging/iio/accel/adis16204_ring.c4
-rw-r--r--drivers/staging/iio/accel/adis16204_trigger.c4
-rw-r--r--drivers/staging/iio/accel/adis16209_core.c6
-rw-r--r--drivers/staging/iio/accel/adis16209_ring.c4
-rw-r--r--drivers/staging/iio/accel/adis16209_trigger.c4
-rw-r--r--drivers/staging/iio/accel/adis16220_core.c4
-rw-r--r--drivers/staging/iio/accel/adis16240_core.c6
-rw-r--r--drivers/staging/iio/accel/adis16240_ring.c4
-rw-r--r--drivers/staging/iio/accel/adis16240_trigger.c4
-rw-r--r--drivers/staging/iio/accel/kxsd9.c4
-rw-r--r--drivers/staging/iio/accel/lis3l02dq_core.c8
-rw-r--r--drivers/staging/iio/accel/lis3l02dq_ring.c8
-rw-r--r--drivers/staging/iio/accel/sca3000_core.c8
-rw-r--r--drivers/staging/iio/accel/sca3000_ring.c6
-rw-r--r--drivers/staging/iio/adc/ad7192.c10
-rw-r--r--drivers/staging/iio/adc/ad7280a.c6
-rw-r--r--drivers/staging/iio/adc/ad7291.c6
-rw-r--r--drivers/staging/iio/adc/ad7298_core.c6
-rw-r--r--drivers/staging/iio/adc/ad7298_ring.c6
-rw-r--r--drivers/staging/iio/adc/ad7476_core.c6
-rw-r--r--drivers/staging/iio/adc/ad7476_ring.c6
-rw-r--r--drivers/staging/iio/adc/ad7606_core.c6
-rw-r--r--drivers/staging/iio/adc/ad7606_par.c2
-rw-r--r--drivers/staging/iio/adc/ad7606_ring.c6
-rw-r--r--drivers/staging/iio/adc/ad7606_spi.c2
-rw-r--r--drivers/staging/iio/adc/ad7780.c4
-rw-r--r--drivers/staging/iio/adc/ad7793.c10
-rw-r--r--drivers/staging/iio/adc/ad7816.c6
-rw-r--r--drivers/staging/iio/adc/ad7887_core.c6
-rw-r--r--drivers/staging/iio/adc/ad7887_ring.c6
-rw-r--r--drivers/staging/iio/adc/ad799x_core.c8
-rw-r--r--drivers/staging/iio/adc/ad799x_ring.c6
-rw-r--r--drivers/staging/iio/adc/adt7310.c6
-rw-r--r--drivers/staging/iio/adc/adt7410.c6
-rw-r--r--drivers/staging/iio/adc/lpc32xx_adc.c4
-rw-r--r--drivers/staging/iio/adc/max1363_core.c10
-rw-r--r--drivers/staging/iio/adc/max1363_ring.c6
-rw-r--r--drivers/staging/iio/adc/spear_adc.c4
-rw-r--r--drivers/staging/iio/addac/adt7316.c6
-rw-r--r--drivers/staging/iio/cdc/ad7150.c6
-rw-r--r--drivers/staging/iio/cdc/ad7152.c4
-rw-r--r--drivers/staging/iio/cdc/ad7746.c4
-rw-r--r--drivers/staging/iio/dac/ad5064.c4
-rw-r--r--drivers/staging/iio/dac/ad5360.c4
-rw-r--r--drivers/staging/iio/dac/ad5380.c4
-rw-r--r--drivers/staging/iio/dac/ad5421.c6
-rw-r--r--drivers/staging/iio/dac/ad5446.c4
-rw-r--r--drivers/staging/iio/dac/ad5504.c6
-rw-r--r--drivers/staging/iio/dac/ad5624r_spi.c4
-rw-r--r--drivers/staging/iio/dac/ad5686.c4
-rw-r--r--drivers/staging/iio/dac/ad5764.c4
-rw-r--r--drivers/staging/iio/dac/ad5791.c4
-rw-r--r--drivers/staging/iio/dac/max517.c4
-rw-r--r--drivers/staging/iio/dds/ad5930.c4
-rw-r--r--drivers/staging/iio/dds/ad9832.c4
-rw-r--r--drivers/staging/iio/dds/ad9834.c4
-rw-r--r--drivers/staging/iio/dds/ad9850.c4
-rw-r--r--drivers/staging/iio/dds/ad9852.c4
-rw-r--r--drivers/staging/iio/dds/ad9910.c4
-rw-r--r--drivers/staging/iio/dds/ad9951.c4
-rw-r--r--drivers/staging/iio/gyro/adis16060_core.c4
-rw-r--r--drivers/staging/iio/gyro/adis16080_core.c4
-rw-r--r--drivers/staging/iio/gyro/adis16130_core.c4
-rw-r--r--drivers/staging/iio/gyro/adis16260_core.c6
-rw-r--r--drivers/staging/iio/gyro/adis16260_ring.c4
-rw-r--r--drivers/staging/iio/gyro/adis16260_trigger.c4
-rw-r--r--drivers/staging/iio/gyro/adxrs450_core.c4
-rw-r--r--drivers/staging/iio/iio_dummy_evgen.c4
-rw-r--r--drivers/staging/iio/iio_hwmon.c4
-rw-r--r--drivers/staging/iio/iio_simple_dummy.c8
-rw-r--r--drivers/staging/iio/iio_simple_dummy_buffer.c6
-rw-r--r--drivers/staging/iio/iio_simple_dummy_events.c6
-rw-r--r--drivers/staging/iio/impedance-analyzer/ad5933.c6
-rw-r--r--drivers/staging/iio/imu/adis16400_core.c6
-rw-r--r--drivers/staging/iio/imu/adis16400_ring.c4
-rw-r--r--drivers/staging/iio/imu/adis16400_trigger.c4
-rw-r--r--drivers/staging/iio/industrialio-buffer.c6
-rw-r--r--drivers/staging/iio/industrialio-core.c6
-rw-r--r--drivers/staging/iio/industrialio-event.c6
-rw-r--r--drivers/staging/iio/industrialio-trigger.c6
-rw-r--r--drivers/staging/iio/inkern.c8
-rw-r--r--drivers/staging/iio/kfifo_buf.c3
-rw-r--r--drivers/staging/iio/light/isl29018.c4
-rw-r--r--drivers/staging/iio/light/isl29028.c4
-rw-r--r--drivers/staging/iio/light/tsl2563.c6
-rw-r--r--drivers/staging/iio/light/tsl2583.c2
-rwxr-xr-xdrivers/staging/iio/light/tsl2x7x_core.c6
-rw-r--r--drivers/staging/iio/magnetometer/ak8975.c4
-rw-r--r--drivers/staging/iio/magnetometer/hmc5843.c4
-rw-r--r--drivers/staging/iio/meter/ade7753.c4
-rw-r--r--drivers/staging/iio/meter/ade7754.c4
-rw-r--r--drivers/staging/iio/meter/ade7758_core.c6
-rw-r--r--drivers/staging/iio/meter/ade7758_ring.c4
-rw-r--r--drivers/staging/iio/meter/ade7758_trigger.c4
-rw-r--r--drivers/staging/iio/meter/ade7759.c4
-rw-r--r--drivers/staging/iio/meter/ade7854-i2c.c2
-rw-r--r--drivers/staging/iio/meter/ade7854-spi.c2
-rw-r--r--drivers/staging/iio/meter/ade7854.c4
-rw-r--r--drivers/staging/iio/meter/meter.h2
-rw-r--r--drivers/staging/iio/resolver/ad2s1200.c4
-rw-r--r--drivers/staging/iio/resolver/ad2s1210.c4
-rw-r--r--drivers/staging/iio/resolver/ad2s90.c4
-rw-r--r--drivers/staging/iio/ring_sw.c2
-rw-r--r--drivers/staging/iio/ring_sw.h2
-rw-r--r--drivers/staging/iio/trigger/iio-trig-bfin-timer.c4
-rw-r--r--drivers/staging/iio/trigger/iio-trig-gpio.c4
-rw-r--r--drivers/staging/iio/trigger/iio-trig-periodic-rtc.c4
-rw-r--r--drivers/staging/iio/trigger/iio-trig-sysfs.c4
-rw-r--r--include/linux/iio/buffer.h (renamed from drivers/staging/iio/buffer.h)2
-rw-r--r--include/linux/iio/consumer.h (renamed from drivers/staging/iio/consumer.h)2
-rw-r--r--include/linux/iio/driver.h (renamed from drivers/staging/iio/driver.h)0
-rw-r--r--include/linux/iio/events.h (renamed from drivers/staging/iio/events.h)2
-rw-r--r--include/linux/iio/iio.h (renamed from drivers/staging/iio/iio.h)2
-rw-r--r--include/linux/iio/kfifo_buf.h (renamed from drivers/staging/iio/kfifo_buf.h)4
-rw-r--r--include/linux/iio/machine.h (renamed from drivers/staging/iio/machine.h)0
-rw-r--r--include/linux/iio/sysfs.h (renamed from drivers/staging/iio/sysfs.h)0
-rw-r--r--include/linux/iio/trigger.h (renamed from drivers/staging/iio/trigger.h)0
-rw-r--r--include/linux/iio/trigger_consumer.h (renamed from drivers/staging/iio/trigger_consumer.h)0
-rw-r--r--include/linux/iio/types.h (renamed from drivers/staging/iio/types.h)0
127 files changed, 286 insertions, 287 deletions
diff --git a/drivers/staging/iio/Documentation/iio_event_monitor.c b/drivers/staging/iio/Documentation/iio_event_monitor.c
index 0d21a277305f..22275845fb12 100644
--- a/drivers/staging/iio/Documentation/iio_event_monitor.c
+++ b/drivers/staging/iio/Documentation/iio_event_monitor.c
@@ -27,7 +27,7 @@
27#include <fcntl.h> 27#include <fcntl.h>
28#include <sys/ioctl.h> 28#include <sys/ioctl.h>
29#include "iio_utils.h" 29#include "iio_utils.h"
30#include "../events.h" 30#include <linux/iio/events.h>
31 31
32static const char * const iio_chan_type_name_spec[] = { 32static const char * const iio_chan_type_name_spec[] = {
33 [IIO_VOLTAGE] = "voltage", 33 [IIO_VOLTAGE] = "voltage",
diff --git a/drivers/staging/iio/accel/adis16201_core.c b/drivers/staging/iio/accel/adis16201_core.c
index 8022bbdd4b63..9dce7b8d38a5 100644
--- a/drivers/staging/iio/accel/adis16201_core.c
+++ b/drivers/staging/iio/accel/adis16201_core.c
@@ -15,9 +15,9 @@
15#include <linux/sysfs.h> 15#include <linux/sysfs.h>
16#include <linux/module.h> 16#include <linux/module.h>
17 17
18#include "../iio.h" 18#include <linux/iio/iio.h>
19#include "../sysfs.h" 19#include <linux/iio/sysfs.h>
20#include "../buffer.h" 20#include <linux/iio/buffer.h>
21 21
22#include "adis16201.h" 22#include "adis16201.h"
23 23
diff --git a/drivers/staging/iio/accel/adis16201_ring.c b/drivers/staging/iio/accel/adis16201_ring.c
index 49912e2dde3e..247602a8e54c 100644
--- a/drivers/staging/iio/accel/adis16201_ring.c
+++ b/drivers/staging/iio/accel/adis16201_ring.c
@@ -5,9 +5,9 @@
5#include <linux/spi/spi.h> 5#include <linux/spi/spi.h>
6#include <linux/slab.h> 6#include <linux/slab.h>
7 7
8#include "../iio.h" 8#include <linux/iio/iio.h>
9#include "../ring_sw.h" 9#include "../ring_sw.h"
10#include "../trigger_consumer.h" 10#include <linux/iio/trigger_consumer.h>
11#include "adis16201.h" 11#include "adis16201.h"
12 12
13 13
diff --git a/drivers/staging/iio/accel/adis16201_trigger.c b/drivers/staging/iio/accel/adis16201_trigger.c
index bce505e716d0..da687e01cc45 100644
--- a/drivers/staging/iio/accel/adis16201_trigger.c
+++ b/drivers/staging/iio/accel/adis16201_trigger.c
@@ -3,8 +3,8 @@
3#include <linux/spi/spi.h> 3#include <linux/spi/spi.h>
4#include <linux/export.h> 4#include <linux/export.h>
5 5
6#include "../iio.h" 6#include <linux/iio/iio.h>
7#include "../trigger.h" 7#include <linux/iio/trigger.h>
8#include "adis16201.h" 8#include "adis16201.h"
9 9
10/** 10/**
diff --git a/drivers/staging/iio/accel/adis16203_core.c b/drivers/staging/iio/accel/adis16203_core.c
index f23b7c5125af..cf1a0e565673 100644
--- a/drivers/staging/iio/accel/adis16203_core.c
+++ b/drivers/staging/iio/accel/adis16203_core.c
@@ -15,9 +15,9 @@
15#include <linux/sysfs.h> 15#include <linux/sysfs.h>
16#include <linux/module.h> 16#include <linux/module.h>
17 17
18#include "../iio.h" 18#include <linux/iio/iio.h>
19#include "../sysfs.h" 19#include <linux/iio/sysfs.h>
20#include "../buffer.h" 20#include <linux/iio/buffer.h>
21 21
22#include "adis16203.h" 22#include "adis16203.h"
23 23
diff --git a/drivers/staging/iio/accel/adis16203_ring.c b/drivers/staging/iio/accel/adis16203_ring.c
index 5c40f6c72971..2171f7483e71 100644
--- a/drivers/staging/iio/accel/adis16203_ring.c
+++ b/drivers/staging/iio/accel/adis16203_ring.c
@@ -5,9 +5,9 @@
5#include <linux/spi/spi.h> 5#include <linux/spi/spi.h>
6#include <linux/slab.h> 6#include <linux/slab.h>
7 7
8#include "../iio.h" 8#include <linux/iio/iio.h>
9#include "../ring_sw.h" 9#include "../ring_sw.h"
10#include "../trigger_consumer.h" 10#include <linux/iio/trigger_consumer.h>
11#include "adis16203.h" 11#include "adis16203.h"
12 12
13/** 13/**
diff --git a/drivers/staging/iio/accel/adis16203_trigger.c b/drivers/staging/iio/accel/adis16203_trigger.c
index 24bcb8e15c55..1e1b981e1581 100644
--- a/drivers/staging/iio/accel/adis16203_trigger.c
+++ b/drivers/staging/iio/accel/adis16203_trigger.c
@@ -3,8 +3,8 @@
3#include <linux/spi/spi.h> 3#include <linux/spi/spi.h>
4#include <linux/export.h> 4#include <linux/export.h>
5 5
6#include "../iio.h" 6#include <linux/iio/iio.h>
7#include "../trigger.h" 7#include <linux/iio/trigger.h>
8#include "adis16203.h" 8#include "adis16203.h"
9 9
10/** 10/**
diff --git a/drivers/staging/iio/accel/adis16204_core.c b/drivers/staging/iio/accel/adis16204_core.c
index bffbbe8f737c..2a15d71c02c7 100644
--- a/drivers/staging/iio/accel/adis16204_core.c
+++ b/drivers/staging/iio/accel/adis16204_core.c
@@ -18,9 +18,9 @@
18#include <linux/list.h> 18#include <linux/list.h>
19#include <linux/module.h> 19#include <linux/module.h>
20 20
21#include "../iio.h" 21#include <linux/iio/iio.h>
22#include "../sysfs.h" 22#include <linux/iio/sysfs.h>
23#include "../buffer.h" 23#include <linux/iio/buffer.h>
24 24
25#include "adis16204.h" 25#include "adis16204.h"
26 26
diff --git a/drivers/staging/iio/accel/adis16204_ring.c b/drivers/staging/iio/accel/adis16204_ring.c
index bf5488ecc65b..0a8b1255fd1c 100644
--- a/drivers/staging/iio/accel/adis16204_ring.c
+++ b/drivers/staging/iio/accel/adis16204_ring.c
@@ -5,9 +5,9 @@
5#include <linux/spi/spi.h> 5#include <linux/spi/spi.h>
6#include <linux/slab.h> 6#include <linux/slab.h>
7 7
8#include "../iio.h" 8#include <linux/iio/iio.h>
9#include "../ring_sw.h" 9#include "../ring_sw.h"
10#include "../trigger_consumer.h" 10#include <linux/iio/trigger_consumer.h>
11#include "adis16204.h" 11#include "adis16204.h"
12 12
13/** 13/**
diff --git a/drivers/staging/iio/accel/adis16204_trigger.c b/drivers/staging/iio/accel/adis16204_trigger.c
index 6e542af02c09..e6f2937ade7c 100644
--- a/drivers/staging/iio/accel/adis16204_trigger.c
+++ b/drivers/staging/iio/accel/adis16204_trigger.c
@@ -3,8 +3,8 @@
3#include <linux/spi/spi.h> 3#include <linux/spi/spi.h>
4#include <linux/export.h> 4#include <linux/export.h>
5 5
6#include "../iio.h" 6#include <linux/iio/iio.h>
7#include "../trigger.h" 7#include <linux/iio/trigger.h>
8#include "adis16204.h" 8#include "adis16204.h"
9 9
10/** 10/**
diff --git a/drivers/staging/iio/accel/adis16209_core.c b/drivers/staging/iio/accel/adis16209_core.c
index b1fbf19a71f3..cad411340f1d 100644
--- a/drivers/staging/iio/accel/adis16209_core.c
+++ b/drivers/staging/iio/accel/adis16209_core.c
@@ -16,9 +16,9 @@
16#include <linux/list.h> 16#include <linux/list.h>
17#include <linux/module.h> 17#include <linux/module.h>
18 18
19#include "../iio.h" 19#include <linux/iio/iio.h>
20#include "../sysfs.h" 20#include <linux/iio/sysfs.h>
21#include "../buffer.h" 21#include <linux/iio/buffer.h>
22 22
23#include "adis16209.h" 23#include "adis16209.h"
24 24
diff --git a/drivers/staging/iio/accel/adis16209_ring.c b/drivers/staging/iio/accel/adis16209_ring.c
index 3101c537d13d..f7ed989dd20c 100644
--- a/drivers/staging/iio/accel/adis16209_ring.c
+++ b/drivers/staging/iio/accel/adis16209_ring.c
@@ -5,9 +5,9 @@
5#include <linux/spi/spi.h> 5#include <linux/spi/spi.h>
6#include <linux/slab.h> 6#include <linux/slab.h>
7 7
8#include "../iio.h" 8#include <linux/iio/iio.h>
9#include "../ring_sw.h" 9#include "../ring_sw.h"
10#include "../trigger_consumer.h" 10#include <linux/iio/trigger_consumer.h>
11#include "adis16209.h" 11#include "adis16209.h"
12 12
13/** 13/**
diff --git a/drivers/staging/iio/accel/adis16209_trigger.c b/drivers/staging/iio/accel/adis16209_trigger.c
index c5d82c1a55d9..5f5dbed447d7 100644
--- a/drivers/staging/iio/accel/adis16209_trigger.c
+++ b/drivers/staging/iio/accel/adis16209_trigger.c
@@ -3,8 +3,8 @@
3#include <linux/spi/spi.h> 3#include <linux/spi/spi.h>
4#include <linux/export.h> 4#include <linux/export.h>
5 5
6#include "../iio.h" 6#include <linux/iio/iio.h>
7#include "../trigger.h" 7#include <linux/iio/trigger.h>
8#include "adis16209.h" 8#include "adis16209.h"
9 9
10/** 10/**
diff --git a/drivers/staging/iio/accel/adis16220_core.c b/drivers/staging/iio/accel/adis16220_core.c
index 2740c8e1398c..c86a3db6d747 100644
--- a/drivers/staging/iio/accel/adis16220_core.c
+++ b/drivers/staging/iio/accel/adis16220_core.c
@@ -15,8 +15,8 @@
15#include <linux/sysfs.h> 15#include <linux/sysfs.h>
16#include <linux/module.h> 16#include <linux/module.h>
17 17
18#include "../iio.h" 18#include <linux/iio/iio.h>
19#include "../sysfs.h" 19#include <linux/iio/sysfs.h>
20 20
21#include "adis16220.h" 21#include "adis16220.h"
22 22
diff --git a/drivers/staging/iio/accel/adis16240_core.c b/drivers/staging/iio/accel/adis16240_core.c
index 18ed39692b4d..fcc2c19f69dd 100644
--- a/drivers/staging/iio/accel/adis16240_core.c
+++ b/drivers/staging/iio/accel/adis16240_core.c
@@ -19,9 +19,9 @@
19#include <linux/list.h> 19#include <linux/list.h>
20#include <linux/module.h> 20#include <linux/module.h>
21 21
22#include "../iio.h" 22#include <linux/iio/iio.h>
23#include "../sysfs.h" 23#include <linux/iio/sysfs.h>
24#include "../buffer.h" 24#include <linux/iio/buffer.h>
25 25
26#include "adis16240.h" 26#include "adis16240.h"
27 27
diff --git a/drivers/staging/iio/accel/adis16240_ring.c b/drivers/staging/iio/accel/adis16240_ring.c
index c4459f73e747..1aa95662e542 100644
--- a/drivers/staging/iio/accel/adis16240_ring.c
+++ b/drivers/staging/iio/accel/adis16240_ring.c
@@ -5,9 +5,9 @@
5#include <linux/spi/spi.h> 5#include <linux/spi/spi.h>
6#include <linux/slab.h> 6#include <linux/slab.h>
7 7
8#include "../iio.h" 8#include <linux/iio/iio.h>
9#include "../ring_sw.h" 9#include "../ring_sw.h"
10#include "../trigger_consumer.h" 10#include <linux/iio/trigger_consumer.h>
11#include "adis16240.h" 11#include "adis16240.h"
12 12
13/** 13/**
diff --git a/drivers/staging/iio/accel/adis16240_trigger.c b/drivers/staging/iio/accel/adis16240_trigger.c
index 8e0ce568e64c..53eda35b37e7 100644
--- a/drivers/staging/iio/accel/adis16240_trigger.c
+++ b/drivers/staging/iio/accel/adis16240_trigger.c
@@ -3,8 +3,8 @@
3#include <linux/spi/spi.h> 3#include <linux/spi/spi.h>
4#include <linux/export.h> 4#include <linux/export.h>
5 5
6#include "../iio.h" 6#include <linux/iio/iio.h>
7#include "../trigger.h" 7#include <linux/iio/trigger.h>
8#include "adis16240.h" 8#include "adis16240.h"
9 9
10/** 10/**
diff --git a/drivers/staging/iio/accel/kxsd9.c b/drivers/staging/iio/accel/kxsd9.c
index 601da28f3b3a..329239011d47 100644
--- a/drivers/staging/iio/accel/kxsd9.c
+++ b/drivers/staging/iio/accel/kxsd9.c
@@ -23,8 +23,8 @@
23#include <linux/slab.h> 23#include <linux/slab.h>
24#include <linux/module.h> 24#include <linux/module.h>
25 25
26#include "../iio.h" 26#include <linux/iio/iio.h>
27#include "../sysfs.h" 27#include <linux/iio/sysfs.h>
28 28
29#define KXSD9_REG_X 0x00 29#define KXSD9_REG_X 0x00
30#define KXSD9_REG_Y 0x02 30#define KXSD9_REG_Y 0x02
diff --git a/drivers/staging/iio/accel/lis3l02dq_core.c b/drivers/staging/iio/accel/lis3l02dq_core.c
index ee8ad3a3f981..bbef0be3d81e 100644
--- a/drivers/staging/iio/accel/lis3l02dq_core.c
+++ b/drivers/staging/iio/accel/lis3l02dq_core.c
@@ -23,10 +23,10 @@
23#include <linux/sysfs.h> 23#include <linux/sysfs.h>
24#include <linux/module.h> 24#include <linux/module.h>
25 25
26#include "../iio.h" 26#include <linux/iio/iio.h>
27#include "../sysfs.h" 27#include <linux/iio/sysfs.h>
28#include "../events.h" 28#include <linux/iio/events.h>
29#include "../buffer.h" 29#include <linux/iio/buffer.h>
30 30
31#include "lis3l02dq.h" 31#include "lis3l02dq.h"
32 32
diff --git a/drivers/staging/iio/accel/lis3l02dq_ring.c b/drivers/staging/iio/accel/lis3l02dq_ring.c
index ebd5b4d3d957..c8b8164eef77 100644
--- a/drivers/staging/iio/accel/lis3l02dq_ring.c
+++ b/drivers/staging/iio/accel/lis3l02dq_ring.c
@@ -6,11 +6,11 @@
6#include <linux/slab.h> 6#include <linux/slab.h>
7#include <linux/export.h> 7#include <linux/export.h>
8 8
9#include "../iio.h" 9#include <linux/iio/iio.h>
10#include "../ring_sw.h" 10#include "../ring_sw.h"
11#include "../kfifo_buf.h" 11#include <linux/iio/kfifo_buf.h>
12#include "../trigger.h" 12#include <linux/iio/trigger.h>
13#include "../trigger_consumer.h" 13#include <linux/iio/trigger_consumer.h>
14#include "lis3l02dq.h" 14#include "lis3l02dq.h"
15 15
16/** 16/**
diff --git a/drivers/staging/iio/accel/sca3000_core.c b/drivers/staging/iio/accel/sca3000_core.c
index 646e05ccfa86..2ee5eb060932 100644
--- a/drivers/staging/iio/accel/sca3000_core.c
+++ b/drivers/staging/iio/accel/sca3000_core.c
@@ -18,10 +18,10 @@
18#include <linux/spi/spi.h> 18#include <linux/spi/spi.h>
19#include <linux/sysfs.h> 19#include <linux/sysfs.h>
20#include <linux/module.h> 20#include <linux/module.h>
21#include "../iio.h" 21#include <linux/iio/iio.h>
22#include "../sysfs.h" 22#include <linux/iio/sysfs.h>
23#include "../events.h" 23#include <linux/iio/events.h>
24#include "../buffer.h" 24#include <linux/iio/buffer.h>
25 25
26#include "sca3000.h" 26#include "sca3000.h"
27 27
diff --git a/drivers/staging/iio/accel/sca3000_ring.c b/drivers/staging/iio/accel/sca3000_ring.c
index 6b824a11f7f4..889bc86047f9 100644
--- a/drivers/staging/iio/accel/sca3000_ring.c
+++ b/drivers/staging/iio/accel/sca3000_ring.c
@@ -18,9 +18,9 @@
18#include <linux/sched.h> 18#include <linux/sched.h>
19#include <linux/poll.h> 19#include <linux/poll.h>
20 20
21#include "../iio.h" 21#include <linux/iio/iio.h>
22#include "../sysfs.h" 22#include <linux/iio/sysfs.h>
23#include "../buffer.h" 23#include <linux/iio/buffer.h>
24#include "../ring_hw.h" 24#include "../ring_hw.h"
25#include "sca3000.h" 25#include "sca3000.h"
26 26
diff --git a/drivers/staging/iio/adc/ad7192.c b/drivers/staging/iio/adc/ad7192.c
index 5d316857c13a..14f983450d7f 100644
--- a/drivers/staging/iio/adc/ad7192.c
+++ b/drivers/staging/iio/adc/ad7192.c
@@ -17,12 +17,12 @@
17#include <linux/sched.h> 17#include <linux/sched.h>
18#include <linux/delay.h> 18#include <linux/delay.h>
19 19
20#include "../iio.h" 20#include <linux/iio/iio.h>
21#include "../sysfs.h" 21#include <linux/iio/sysfs.h>
22#include "../buffer.h" 22#include <linux/iio/buffer.h>
23#include "../ring_sw.h" 23#include "../ring_sw.h"
24#include "../trigger.h" 24#include <linux/iio/trigger.h>
25#include "../trigger_consumer.h" 25#include <linux/iio/trigger_consumer.h>
26 26
27#include "ad7192.h" 27#include "ad7192.h"
28 28
diff --git a/drivers/staging/iio/adc/ad7280a.c b/drivers/staging/iio/adc/ad7280a.c
index f0c0c72a1b07..d72780f91031 100644
--- a/drivers/staging/iio/adc/ad7280a.c
+++ b/drivers/staging/iio/adc/ad7280a.c
@@ -16,9 +16,9 @@
16#include <linux/interrupt.h> 16#include <linux/interrupt.h>
17#include <linux/module.h> 17#include <linux/module.h>
18 18
19#include "../iio.h" 19#include <linux/iio/iio.h>
20#include "../sysfs.h" 20#include <linux/iio/sysfs.h>
21#include "../events.h" 21#include <linux/iio/events.h>
22 22
23#include "ad7280a.h" 23#include "ad7280a.h"
24 24
diff --git a/drivers/staging/iio/adc/ad7291.c b/drivers/staging/iio/adc/ad7291.c
index 298249f39887..b8e4fe6c0c50 100644
--- a/drivers/staging/iio/adc/ad7291.c
+++ b/drivers/staging/iio/adc/ad7291.c
@@ -17,9 +17,9 @@
17#include <linux/regulator/consumer.h> 17#include <linux/regulator/consumer.h>
18#include <linux/err.h> 18#include <linux/err.h>
19 19
20#include "../iio.h" 20#include <linux/iio/iio.h>
21#include "../sysfs.h" 21#include <linux/iio/sysfs.h>
22#include "../events.h" 22#include <linux/iio/events.h>
23 23
24/* 24/*
25 * Simplified handling 25 * Simplified handling
diff --git a/drivers/staging/iio/adc/ad7298_core.c b/drivers/staging/iio/adc/ad7298_core.c
index 5d54a795a389..974a8e3ef26a 100644
--- a/drivers/staging/iio/adc/ad7298_core.c
+++ b/drivers/staging/iio/adc/ad7298_core.c
@@ -16,9 +16,9 @@
16#include <linux/delay.h> 16#include <linux/delay.h>
17#include <linux/module.h> 17#include <linux/module.h>
18 18
19#include "../iio.h" 19#include <linux/iio/iio.h>
20#include "../sysfs.h" 20#include <linux/iio/sysfs.h>
21#include "../buffer.h" 21#include <linux/iio/buffer.h>
22 22
23#include "ad7298.h" 23#include "ad7298.h"
24 24
diff --git a/drivers/staging/iio/adc/ad7298_ring.c b/drivers/staging/iio/adc/ad7298_ring.c
index 538e3b357e44..943caa340bfa 100644
--- a/drivers/staging/iio/adc/ad7298_ring.c
+++ b/drivers/staging/iio/adc/ad7298_ring.c
@@ -11,10 +11,10 @@
11#include <linux/slab.h> 11#include <linux/slab.h>
12#include <linux/spi/spi.h> 12#include <linux/spi/spi.h>
13 13
14#include "../iio.h" 14#include <linux/iio/iio.h>
15#include "../buffer.h" 15#include <linux/iio/buffer.h>
16#include "../ring_sw.h" 16#include "../ring_sw.h"
17#include "../trigger_consumer.h" 17#include <linux/iio/trigger_consumer.h>
18 18
19#include "ad7298.h" 19#include "ad7298.h"
20 20
diff --git a/drivers/staging/iio/adc/ad7476_core.c b/drivers/staging/iio/adc/ad7476_core.c
index ce715225eff3..1241b9fadbf7 100644
--- a/drivers/staging/iio/adc/ad7476_core.c
+++ b/drivers/staging/iio/adc/ad7476_core.c
@@ -15,9 +15,9 @@
15#include <linux/err.h> 15#include <linux/err.h>
16#include <linux/module.h> 16#include <linux/module.h>
17 17
18#include "../iio.h" 18#include <linux/iio/iio.h>
19#include "../sysfs.h" 19#include <linux/iio/sysfs.h>
20#include "../buffer.h" 20#include <linux/iio/buffer.h>
21 21
22#include "ad7476.h" 22#include "ad7476.h"
23 23
diff --git a/drivers/staging/iio/adc/ad7476_ring.c b/drivers/staging/iio/adc/ad7476_ring.c
index 8534f6b3cccb..51403892bc8b 100644
--- a/drivers/staging/iio/adc/ad7476_ring.c
+++ b/drivers/staging/iio/adc/ad7476_ring.c
@@ -13,10 +13,10 @@
13#include <linux/slab.h> 13#include <linux/slab.h>
14#include <linux/spi/spi.h> 14#include <linux/spi/spi.h>
15 15
16#include "../iio.h" 16#include <linux/iio/iio.h>
17#include "../buffer.h" 17#include <linux/iio/buffer.h>
18#include "../ring_sw.h" 18#include "../ring_sw.h"
19#include "../trigger_consumer.h" 19#include <linux/iio/trigger_consumer.h>
20 20
21#include "ad7476.h" 21#include "ad7476.h"
22 22
diff --git a/drivers/staging/iio/adc/ad7606_core.c b/drivers/staging/iio/adc/ad7606_core.c
index 802cdaf538f2..9c540643576b 100644
--- a/drivers/staging/iio/adc/ad7606_core.c
+++ b/drivers/staging/iio/adc/ad7606_core.c
@@ -18,9 +18,9 @@
18#include <linux/sched.h> 18#include <linux/sched.h>
19#include <linux/module.h> 19#include <linux/module.h>
20 20
21#include "../iio.h" 21#include <linux/iio/iio.h>
22#include "../sysfs.h" 22#include <linux/iio/sysfs.h>
23#include "../buffer.h" 23#include <linux/iio/buffer.h>
24 24
25#include "ad7606.h" 25#include "ad7606.h"
26 26
diff --git a/drivers/staging/iio/adc/ad7606_par.c b/drivers/staging/iio/adc/ad7606_par.c
index bb152a8e8c92..a53faafec070 100644
--- a/drivers/staging/iio/adc/ad7606_par.c
+++ b/drivers/staging/iio/adc/ad7606_par.c
@@ -12,7 +12,7 @@
12#include <linux/err.h> 12#include <linux/err.h>
13#include <linux/io.h> 13#include <linux/io.h>
14 14
15#include "../iio.h" 15#include <linux/iio/iio.h>
16#include "ad7606.h" 16#include "ad7606.h"
17 17
18static int ad7606_par16_read_block(struct device *dev, 18static int ad7606_par16_read_block(struct device *dev,
diff --git a/drivers/staging/iio/adc/ad7606_ring.c b/drivers/staging/iio/adc/ad7606_ring.c
index 007b6005beed..3dd9602b1070 100644
--- a/drivers/staging/iio/adc/ad7606_ring.c
+++ b/drivers/staging/iio/adc/ad7606_ring.c
@@ -11,10 +11,10 @@
11#include <linux/kernel.h> 11#include <linux/kernel.h>
12#include <linux/slab.h> 12#include <linux/slab.h>
13 13
14#include "../iio.h" 14#include <linux/iio/iio.h>
15#include "../buffer.h" 15#include <linux/iio/buffer.h>
16#include "../ring_sw.h" 16#include "../ring_sw.h"
17#include "../trigger_consumer.h" 17#include <linux/iio/trigger_consumer.h>
18 18
19#include "ad7606.h" 19#include "ad7606.h"
20 20
diff --git a/drivers/staging/iio/adc/ad7606_spi.c b/drivers/staging/iio/adc/ad7606_spi.c
index 237f1c44d296..099d347da52d 100644
--- a/drivers/staging/iio/adc/ad7606_spi.c
+++ b/drivers/staging/iio/adc/ad7606_spi.c
@@ -11,7 +11,7 @@
11#include <linux/types.h> 11#include <linux/types.h>
12#include <linux/err.h> 12#include <linux/err.h>
13 13
14#include "../iio.h" 14#include <linux/iio/iio.h>
15#include "ad7606.h" 15#include "ad7606.h"
16 16
17#define MAX_SPI_FREQ_HZ 23500000 /* VDRIVE above 4.75 V */ 17#define MAX_SPI_FREQ_HZ 23500000 /* VDRIVE above 4.75 V */
diff --git a/drivers/staging/iio/adc/ad7780.c b/drivers/staging/iio/adc/ad7780.c
index eeedbdb05a95..a8e661e5e4e6 100644
--- a/drivers/staging/iio/adc/ad7780.c
+++ b/drivers/staging/iio/adc/ad7780.c
@@ -18,8 +18,8 @@
18#include <linux/gpio.h> 18#include <linux/gpio.h>
19#include <linux/module.h> 19#include <linux/module.h>
20 20
21#include "../iio.h" 21#include <linux/iio/iio.h>
22#include "../sysfs.h" 22#include <linux/iio/sysfs.h>
23 23
24#include "ad7780.h" 24#include "ad7780.h"
25 25
diff --git a/drivers/staging/iio/adc/ad7793.c b/drivers/staging/iio/adc/ad7793.c
index 7f68c7c84ac6..3a7d1a7b4e05 100644
--- a/drivers/staging/iio/adc/ad7793.c
+++ b/drivers/staging/iio/adc/ad7793.c
@@ -18,12 +18,12 @@
18#include <linux/delay.h> 18#include <linux/delay.h>
19#include <linux/module.h> 19#include <linux/module.h>
20 20
21#include "../iio.h" 21#include <linux/iio/iio.h>
22#include "../sysfs.h" 22#include <linux/iio/sysfs.h>
23#include "../buffer.h" 23#include <linux/iio/buffer.h>
24#include "../ring_sw.h" 24#include "../ring_sw.h"
25#include "../trigger.h" 25#include <linux/iio/trigger.h>
26#include "../trigger_consumer.h" 26#include <linux/iio/trigger_consumer.h>
27 27
28#include "ad7793.h" 28#include "ad7793.h"
29 29
diff --git a/drivers/staging/iio/adc/ad7816.c b/drivers/staging/iio/adc/ad7816.c
index 52b720e2b03a..586f6c2425e2 100644
--- a/drivers/staging/iio/adc/ad7816.c
+++ b/drivers/staging/iio/adc/ad7816.c
@@ -16,9 +16,9 @@
16#include <linux/spi/spi.h> 16#include <linux/spi/spi.h>
17#include <linux/module.h> 17#include <linux/module.h>
18 18
19#include "../iio.h" 19#include <linux/iio/iio.h>
20#include "../sysfs.h" 20#include <linux/iio/sysfs.h>
21#include "../events.h" 21#include <linux/iio/events.h>
22 22
23/* 23/*
24 * AD7816 config masks 24 * AD7816 config masks
diff --git a/drivers/staging/iio/adc/ad7887_core.c b/drivers/staging/iio/adc/ad7887_core.c
index 2cce09f36b74..fef916998f24 100644
--- a/drivers/staging/iio/adc/ad7887_core.c
+++ b/drivers/staging/iio/adc/ad7887_core.c
@@ -15,9 +15,9 @@
15#include <linux/err.h> 15#include <linux/err.h>
16#include <linux/module.h> 16#include <linux/module.h>
17 17
18#include "../iio.h" 18#include <linux/iio/iio.h>
19#include "../sysfs.h" 19#include <linux/iio/sysfs.h>
20#include "../buffer.h" 20#include <linux/iio/buffer.h>
21 21
22 22
23#include "ad7887.h" 23#include "ad7887.h"
diff --git a/drivers/staging/iio/adc/ad7887_ring.c b/drivers/staging/iio/adc/ad7887_ring.c
index 62681a8d43c1..f1846dbf49a0 100644
--- a/drivers/staging/iio/adc/ad7887_ring.c
+++ b/drivers/staging/iio/adc/ad7887_ring.c
@@ -12,10 +12,10 @@
12#include <linux/slab.h> 12#include <linux/slab.h>
13#include <linux/spi/spi.h> 13#include <linux/spi/spi.h>
14 14
15#include "../iio.h" 15#include <linux/iio/iio.h>
16#include "../buffer.h" 16#include <linux/iio/buffer.h>
17#include "../ring_sw.h" 17#include "../ring_sw.h"
18#include "../trigger_consumer.h" 18#include <linux/iio/trigger_consumer.h>
19 19
20#include "ad7887.h" 20#include "ad7887.h"
21 21
diff --git a/drivers/staging/iio/adc/ad799x_core.c b/drivers/staging/iio/adc/ad799x_core.c
index 429fb414f2ea..561ae17ec7cc 100644
--- a/drivers/staging/iio/adc/ad799x_core.c
+++ b/drivers/staging/iio/adc/ad799x_core.c
@@ -33,10 +33,10 @@
33#include <linux/err.h> 33#include <linux/err.h>
34#include <linux/module.h> 34#include <linux/module.h>
35 35
36#include "../iio.h" 36#include <linux/iio/iio.h>
37#include "../sysfs.h" 37#include <linux/iio/sysfs.h>
38#include "../events.h" 38#include <linux/iio/events.h>
39#include "../buffer.h" 39#include <linux/iio/buffer.h>
40 40
41#include "ad799x.h" 41#include "ad799x.h"
42 42
diff --git a/drivers/staging/iio/adc/ad799x_ring.c b/drivers/staging/iio/adc/ad799x_ring.c
index 5190e506716f..18366b5038ce 100644
--- a/drivers/staging/iio/adc/ad799x_ring.c
+++ b/drivers/staging/iio/adc/ad799x_ring.c
@@ -16,10 +16,10 @@
16#include <linux/i2c.h> 16#include <linux/i2c.h>
17#include <linux/bitops.h> 17#include <linux/bitops.h>
18 18
19#include "../iio.h" 19#include <linux/iio/iio.h>
20#include "../buffer.h" 20#include <linux/iio/buffer.h>
21#include "../ring_sw.h" 21#include "../ring_sw.h"
22#include "../trigger_consumer.h" 22#include <linux/iio/trigger_consumer.h>
23 23
24#include "ad799x.h" 24#include "ad799x.h"
25 25
diff --git a/drivers/staging/iio/adc/adt7310.c b/drivers/staging/iio/adc/adt7310.c
index caf57c1169b1..223aea5952df 100644
--- a/drivers/staging/iio/adc/adt7310.c
+++ b/drivers/staging/iio/adc/adt7310.c
@@ -15,9 +15,9 @@
15#include <linux/spi/spi.h> 15#include <linux/spi/spi.h>
16#include <linux/module.h> 16#include <linux/module.h>
17 17
18#include "../iio.h" 18#include <linux/iio/iio.h>
19#include "../sysfs.h" 19#include <linux/iio/sysfs.h>
20#include "../events.h" 20#include <linux/iio/events.h>
21/* 21/*
22 * ADT7310 registers definition 22 * ADT7310 registers definition
23 */ 23 */
diff --git a/drivers/staging/iio/adc/adt7410.c b/drivers/staging/iio/adc/adt7410.c
index dff3e8ca2d78..dab4a5abff8a 100644
--- a/drivers/staging/iio/adc/adt7410.c
+++ b/drivers/staging/iio/adc/adt7410.c
@@ -15,9 +15,9 @@
15#include <linux/i2c.h> 15#include <linux/i2c.h>
16#include <linux/module.h> 16#include <linux/module.h>
17 17
18#include "../iio.h" 18#include <linux/iio/iio.h>
19#include "../sysfs.h" 19#include <linux/iio/sysfs.h>
20#include "../events.h" 20#include <linux/iio/events.h>
21 21
22/* 22/*
23 * ADT7410 registers definition 23 * ADT7410 registers definition
diff --git a/drivers/staging/iio/adc/lpc32xx_adc.c b/drivers/staging/iio/adc/lpc32xx_adc.c
index d7f4fe42d17e..0ddd91712f44 100644
--- a/drivers/staging/iio/adc/lpc32xx_adc.c
+++ b/drivers/staging/iio/adc/lpc32xx_adc.c
@@ -32,8 +32,8 @@
32#include <linux/completion.h> 32#include <linux/completion.h>
33#include <linux/of.h> 33#include <linux/of.h>
34 34
35#include "../iio.h" 35#include <linux/iio/iio.h>
36#include "../sysfs.h" 36#include <linux/iio/sysfs.h>
37 37
38/* 38/*
39 * LPC32XX registers definitions 39 * LPC32XX registers definitions
diff --git a/drivers/staging/iio/adc/max1363_core.c b/drivers/staging/iio/adc/max1363_core.c
index 1a7a0274751d..7ab871c8aab5 100644
--- a/drivers/staging/iio/adc/max1363_core.c
+++ b/drivers/staging/iio/adc/max1363_core.c
@@ -32,11 +32,11 @@
32#include <linux/err.h> 32#include <linux/err.h>
33#include <linux/module.h> 33#include <linux/module.h>
34 34
35#include "../iio.h" 35#include <linux/iio/iio.h>
36#include "../sysfs.h" 36#include <linux/iio/sysfs.h>
37#include "../events.h" 37#include <linux/iio/events.h>
38#include "../buffer.h" 38#include <linux/iio/buffer.h>
39#include "../driver.h" 39#include <linux/iio/driver.h>
40 40
41#include "max1363.h" 41#include "max1363.h"
42 42
diff --git a/drivers/staging/iio/adc/max1363_ring.c b/drivers/staging/iio/adc/max1363_ring.c
index 8372e9819b60..b30201300121 100644
--- a/drivers/staging/iio/adc/max1363_ring.c
+++ b/drivers/staging/iio/adc/max1363_ring.c
@@ -14,10 +14,10 @@
14#include <linux/i2c.h> 14#include <linux/i2c.h>
15#include <linux/bitops.h> 15#include <linux/bitops.h>
16 16
17#include "../iio.h" 17#include <linux/iio/iio.h>
18#include "../buffer.h" 18#include <linux/iio/buffer.h>
19#include "../ring_sw.h" 19#include "../ring_sw.h"
20#include "../trigger_consumer.h" 20#include <linux/iio/trigger_consumer.h>
21 21
22#include "max1363.h" 22#include "max1363.h"
23 23
diff --git a/drivers/staging/iio/adc/spear_adc.c b/drivers/staging/iio/adc/spear_adc.c
index 3ca5cc9814eb..2b4e1eb8eab1 100644
--- a/drivers/staging/iio/adc/spear_adc.c
+++ b/drivers/staging/iio/adc/spear_adc.c
@@ -19,8 +19,8 @@
19#include <linux/of.h> 19#include <linux/of.h>
20#include <linux/of_address.h> 20#include <linux/of_address.h>
21 21
22#include "../iio.h" 22#include <linux/iio/iio.h>
23#include "../sysfs.h" 23#include <linux/iio/sysfs.h>
24 24
25/* 25/*
26 * SPEAR registers definitions 26 * SPEAR registers definitions
diff --git a/drivers/staging/iio/addac/adt7316.c b/drivers/staging/iio/addac/adt7316.c
index fd6a45444058..f469ab3cc7b9 100644
--- a/drivers/staging/iio/addac/adt7316.c
+++ b/drivers/staging/iio/addac/adt7316.c
@@ -19,9 +19,9 @@
19#include <linux/rtc.h> 19#include <linux/rtc.h>
20#include <linux/module.h> 20#include <linux/module.h>
21 21
22#include "../iio.h" 22#include <linux/iio/iio.h>
23#include "../events.h" 23#include <linux/iio/events.h>
24#include "../sysfs.h" 24#include <linux/iio/sysfs.h>
25#include "adt7316.h" 25#include "adt7316.h"
26 26
27/* 27/*
diff --git a/drivers/staging/iio/cdc/ad7150.c b/drivers/staging/iio/cdc/ad7150.c
index 116e6c278437..c0ccbc524c6e 100644
--- a/drivers/staging/iio/cdc/ad7150.c
+++ b/drivers/staging/iio/cdc/ad7150.c
@@ -13,9 +13,9 @@
13#include <linux/i2c.h> 13#include <linux/i2c.h>
14#include <linux/module.h> 14#include <linux/module.h>
15 15
16#include "../iio.h" 16#include <linux/iio/iio.h>
17#include "../sysfs.h" 17#include <linux/iio/sysfs.h>
18#include "../events.h" 18#include <linux/iio/events.h>
19/* 19/*
20 * AD7150 registers definition 20 * AD7150 registers definition
21 */ 21 */
diff --git a/drivers/staging/iio/cdc/ad7152.c b/drivers/staging/iio/cdc/ad7152.c
index 1067ce58e07d..ea403596c958 100644
--- a/drivers/staging/iio/cdc/ad7152.c
+++ b/drivers/staging/iio/cdc/ad7152.c
@@ -15,8 +15,8 @@
15#include <linux/module.h> 15#include <linux/module.h>
16#include <linux/delay.h> 16#include <linux/delay.h>
17 17
18#include "../iio.h" 18#include <linux/iio/iio.h>
19#include "../sysfs.h" 19#include <linux/iio/sysfs.h>
20 20
21/* 21/*
22 * TODO: Check compliance of calibbias with abi (units) 22 * TODO: Check compliance of calibbias with abi (units)
diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c
index 750bf4b0385e..74a889a6d899 100644
--- a/drivers/staging/iio/cdc/ad7746.c
+++ b/drivers/staging/iio/cdc/ad7746.c
@@ -16,8 +16,8 @@
16#include <linux/module.h> 16#include <linux/module.h>
17#include <linux/stat.h> 17#include <linux/stat.h>
18 18
19#include "../iio.h" 19#include <linux/iio/iio.h>
20#include "../sysfs.h" 20#include <linux/iio/sysfs.h>
21 21
22#include "ad7746.h" 22#include "ad7746.h"
23 23
diff --git a/drivers/staging/iio/dac/ad5064.c b/drivers/staging/iio/dac/ad5064.c
index 21893edbf009..c0fad4fd13fa 100644
--- a/drivers/staging/iio/dac/ad5064.c
+++ b/drivers/staging/iio/dac/ad5064.c
@@ -16,8 +16,8 @@
16#include <linux/sysfs.h> 16#include <linux/sysfs.h>
17#include <linux/regulator/consumer.h> 17#include <linux/regulator/consumer.h>
18 18
19#include "../iio.h" 19#include <linux/iio/iio.h>
20#include "../sysfs.h" 20#include <linux/iio/sysfs.h>
21#include "dac.h" 21#include "dac.h"
22 22
23#define AD5064_MAX_DAC_CHANNELS 8 23#define AD5064_MAX_DAC_CHANNELS 8
diff --git a/drivers/staging/iio/dac/ad5360.c b/drivers/staging/iio/dac/ad5360.c
index cb6160d84b7b..0978dd2891b9 100644
--- a/drivers/staging/iio/dac/ad5360.c
+++ b/drivers/staging/iio/dac/ad5360.c
@@ -16,8 +16,8 @@
16#include <linux/sysfs.h> 16#include <linux/sysfs.h>
17#include <linux/regulator/consumer.h> 17#include <linux/regulator/consumer.h>
18 18
19#include "../iio.h" 19#include <linux/iio/iio.h>
20#include "../sysfs.h" 20#include <linux/iio/sysfs.h>
21#include "dac.h" 21#include "dac.h"
22 22
23#define AD5360_CMD(x) ((x) << 22) 23#define AD5360_CMD(x) ((x) << 22)
diff --git a/drivers/staging/iio/dac/ad5380.c b/drivers/staging/iio/dac/ad5380.c
index 1d384f01658c..aa077e676dfe 100644
--- a/drivers/staging/iio/dac/ad5380.c
+++ b/drivers/staging/iio/dac/ad5380.c
@@ -18,8 +18,8 @@
18#include <linux/regmap.h> 18#include <linux/regmap.h>
19#include <linux/regulator/consumer.h> 19#include <linux/regulator/consumer.h>
20 20
21#include "../iio.h" 21#include <linux/iio/iio.h>
22#include "../sysfs.h" 22#include <linux/iio/sysfs.h>
23#include "dac.h" 23#include "dac.h"
24 24
25 25
diff --git a/drivers/staging/iio/dac/ad5421.c b/drivers/staging/iio/dac/ad5421.c
index a8b5211ac95a..b1a893ce2c88 100644
--- a/drivers/staging/iio/dac/ad5421.c
+++ b/drivers/staging/iio/dac/ad5421.c
@@ -16,9 +16,9 @@
16#include <linux/slab.h> 16#include <linux/slab.h>
17#include <linux/sysfs.h> 17#include <linux/sysfs.h>
18 18
19#include "../iio.h" 19#include <linux/iio/iio.h>
20#include "../sysfs.h" 20#include <linux/iio/sysfs.h>
21#include "../events.h" 21#include <linux/iio/events.h>
22#include "dac.h" 22#include "dac.h"
23#include "ad5421.h" 23#include "ad5421.h"
24 24
diff --git a/drivers/staging/iio/dac/ad5446.c b/drivers/staging/iio/dac/ad5446.c
index 00b138e56d24..62ad1d5df475 100644
--- a/drivers/staging/iio/dac/ad5446.c
+++ b/drivers/staging/iio/dac/ad5446.c
@@ -18,8 +18,8 @@
18#include <linux/err.h> 18#include <linux/err.h>
19#include <linux/module.h> 19#include <linux/module.h>
20 20
21#include "../iio.h" 21#include <linux/iio/iio.h>
22#include "../sysfs.h" 22#include <linux/iio/sysfs.h>
23#include "dac.h" 23#include "dac.h"
24 24
25#include "ad5446.h" 25#include "ad5446.h"
diff --git a/drivers/staging/iio/dac/ad5504.c b/drivers/staging/iio/dac/ad5504.c
index 796691e544a2..18fc391e62d4 100644
--- a/drivers/staging/iio/dac/ad5504.c
+++ b/drivers/staging/iio/dac/ad5504.c
@@ -16,9 +16,9 @@
16#include <linux/regulator/consumer.h> 16#include <linux/regulator/consumer.h>
17#include <linux/module.h> 17#include <linux/module.h>
18 18
19#include "../iio.h" 19#include <linux/iio/iio.h>
20#include "../sysfs.h" 20#include <linux/iio/sysfs.h>
21#include "../events.h" 21#include <linux/iio/events.h>
22#include "dac.h" 22#include "dac.h"
23#include "ad5504.h" 23#include "ad5504.h"
24 24
diff --git a/drivers/staging/iio/dac/ad5624r_spi.c b/drivers/staging/iio/dac/ad5624r_spi.c
index 74eb889afab1..c7786c18b847 100644
--- a/drivers/staging/iio/dac/ad5624r_spi.c
+++ b/drivers/staging/iio/dac/ad5624r_spi.c
@@ -16,8 +16,8 @@
16#include <linux/regulator/consumer.h> 16#include <linux/regulator/consumer.h>
17#include <linux/module.h> 17#include <linux/module.h>
18 18
19#include "../iio.h" 19#include <linux/iio/iio.h>
20#include "../sysfs.h" 20#include <linux/iio/sysfs.h>
21#include "dac.h" 21#include "dac.h"
22#include "ad5624r.h" 22#include "ad5624r.h"
23 23
diff --git a/drivers/staging/iio/dac/ad5686.c b/drivers/staging/iio/dac/ad5686.c
index b8acd7e572a2..86c869134bd4 100644
--- a/drivers/staging/iio/dac/ad5686.c
+++ b/drivers/staging/iio/dac/ad5686.c
@@ -16,8 +16,8 @@
16#include <linux/sysfs.h> 16#include <linux/sysfs.h>
17#include <linux/regulator/consumer.h> 17#include <linux/regulator/consumer.h>
18 18
19#include "../iio.h" 19#include <linux/iio/iio.h>
20#include "../sysfs.h" 20#include <linux/iio/sysfs.h>
21#include "dac.h" 21#include "dac.h"
22 22
23#define AD5686_DAC_CHANNELS 4 23#define AD5686_DAC_CHANNELS 4
diff --git a/drivers/staging/iio/dac/ad5764.c b/drivers/staging/iio/dac/ad5764.c
index 1c9ff4fc488d..b01d7eedb95e 100644
--- a/drivers/staging/iio/dac/ad5764.c
+++ b/drivers/staging/iio/dac/ad5764.c
@@ -16,8 +16,8 @@
16#include <linux/sysfs.h> 16#include <linux/sysfs.h>
17#include <linux/regulator/consumer.h> 17#include <linux/regulator/consumer.h>
18 18
19#include "../iio.h" 19#include <linux/iio/iio.h>
20#include "../sysfs.h" 20#include <linux/iio/sysfs.h>
21#include "dac.h" 21#include "dac.h"
22 22
23#define AD5764_REG_SF_NOP 0x0 23#define AD5764_REG_SF_NOP 0x0
diff --git a/drivers/staging/iio/dac/ad5791.c b/drivers/staging/iio/dac/ad5791.c
index cdb7b109d6f9..c013868dfcd5 100644
--- a/drivers/staging/iio/dac/ad5791.c
+++ b/drivers/staging/iio/dac/ad5791.c
@@ -17,8 +17,8 @@
17#include <linux/regulator/consumer.h> 17#include <linux/regulator/consumer.h>
18#include <linux/module.h> 18#include <linux/module.h>
19 19
20#include "../iio.h" 20#include <linux/iio/iio.h>
21#include "../sysfs.h" 21#include <linux/iio/sysfs.h>
22#include "dac.h" 22#include "dac.h"
23#include "ad5791.h" 23#include "ad5791.h"
24 24
diff --git a/drivers/staging/iio/dac/max517.c b/drivers/staging/iio/dac/max517.c
index 41483c72cec1..373127cc83a8 100644
--- a/drivers/staging/iio/dac/max517.c
+++ b/drivers/staging/iio/dac/max517.c
@@ -25,8 +25,8 @@
25#include <linux/i2c.h> 25#include <linux/i2c.h>
26#include <linux/err.h> 26#include <linux/err.h>
27 27
28#include "../iio.h" 28#include <linux/iio/iio.h>
29#include "../sysfs.h" 29#include <linux/iio/sysfs.h>
30#include "dac.h" 30#include "dac.h"
31 31
32#include "max517.h" 32#include "max517.h"
diff --git a/drivers/staging/iio/dds/ad5930.c b/drivers/staging/iio/dds/ad5930.c
index 9c32d1beae25..6df4d86be849 100644
--- a/drivers/staging/iio/dds/ad5930.c
+++ b/drivers/staging/iio/dds/ad5930.c
@@ -16,8 +16,8 @@
16#include <linux/sysfs.h> 16#include <linux/sysfs.h>
17#include <linux/module.h> 17#include <linux/module.h>
18 18
19#include "../iio.h" 19#include <linux/iio/iio.h>
20#include "../sysfs.h" 20#include <linux/iio/sysfs.h>
21 21
22#define DRV_NAME "ad5930" 22#define DRV_NAME "ad5930"
23 23
diff --git a/drivers/staging/iio/dds/ad9832.c b/drivers/staging/iio/dds/ad9832.c
index 2ccf25dd9289..57627ff45c3a 100644
--- a/drivers/staging/iio/dds/ad9832.c
+++ b/drivers/staging/iio/dds/ad9832.c
@@ -16,8 +16,8 @@
16#include <linux/module.h> 16#include <linux/module.h>
17#include <asm/div64.h> 17#include <asm/div64.h>
18 18
19#include "../iio.h" 19#include <linux/iio/iio.h>
20#include "../sysfs.h" 20#include <linux/iio/sysfs.h>
21#include "dds.h" 21#include "dds.h"
22 22
23#include "ad9832.h" 23#include "ad9832.h"
diff --git a/drivers/staging/iio/dds/ad9834.c b/drivers/staging/iio/dds/ad9834.c
index 38a2de08626f..9b2c8795f894 100644
--- a/drivers/staging/iio/dds/ad9834.c
+++ b/drivers/staging/iio/dds/ad9834.c
@@ -19,8 +19,8 @@
19#include <linux/module.h> 19#include <linux/module.h>
20#include <asm/div64.h> 20#include <asm/div64.h>
21 21
22#include "../iio.h" 22#include <linux/iio/iio.h>
23#include "../sysfs.h" 23#include <linux/iio/sysfs.h>
24#include "dds.h" 24#include "dds.h"
25 25
26#include "ad9834.h" 26#include "ad9834.h"
diff --git a/drivers/staging/iio/dds/ad9850.c b/drivers/staging/iio/dds/ad9850.c
index f4f731bb2191..cc7a87d25a59 100644
--- a/drivers/staging/iio/dds/ad9850.c
+++ b/drivers/staging/iio/dds/ad9850.c
@@ -16,8 +16,8 @@
16#include <linux/sysfs.h> 16#include <linux/sysfs.h>
17#include <linux/module.h> 17#include <linux/module.h>
18 18
19#include "../iio.h" 19#include <linux/iio/iio.h>
20#include "../sysfs.h" 20#include <linux/iio/sysfs.h>
21 21
22#define DRV_NAME "ad9850" 22#define DRV_NAME "ad9850"
23 23
diff --git a/drivers/staging/iio/dds/ad9852.c b/drivers/staging/iio/dds/ad9852.c
index 554266c615a8..2f8df7bcb783 100644
--- a/drivers/staging/iio/dds/ad9852.c
+++ b/drivers/staging/iio/dds/ad9852.c
@@ -16,8 +16,8 @@
16#include <linux/sysfs.h> 16#include <linux/sysfs.h>
17#include <linux/module.h> 17#include <linux/module.h>
18 18
19#include "../iio.h" 19#include <linux/iio/iio.h>
20#include "../sysfs.h" 20#include <linux/iio/sysfs.h>
21 21
22#define DRV_NAME "ad9852" 22#define DRV_NAME "ad9852"
23 23
diff --git a/drivers/staging/iio/dds/ad9910.c b/drivers/staging/iio/dds/ad9910.c
index 3985766d6f87..e91efc5c0fca 100644
--- a/drivers/staging/iio/dds/ad9910.c
+++ b/drivers/staging/iio/dds/ad9910.c
@@ -16,8 +16,8 @@
16#include <linux/sysfs.h> 16#include <linux/sysfs.h>
17#include <linux/module.h> 17#include <linux/module.h>
18 18
19#include "../iio.h" 19#include <linux/iio/iio.h>
20#include "../sysfs.h" 20#include <linux/iio/sysfs.h>
21 21
22#define DRV_NAME "ad9910" 22#define DRV_NAME "ad9910"
23 23
diff --git a/drivers/staging/iio/dds/ad9951.c b/drivers/staging/iio/dds/ad9951.c
index 4d150048002a..ca1d3111b0bf 100644
--- a/drivers/staging/iio/dds/ad9951.c
+++ b/drivers/staging/iio/dds/ad9951.c
@@ -16,8 +16,8 @@
16#include <linux/sysfs.h> 16#include <linux/sysfs.h>
17#include <linux/module.h> 17#include <linux/module.h>
18 18
19#include "../iio.h" 19#include <linux/iio/iio.h>
20#include "../sysfs.h" 20#include <linux/iio/sysfs.h>
21 21
22#define DRV_NAME "ad9951" 22#define DRV_NAME "ad9951"
23 23
diff --git a/drivers/staging/iio/gyro/adis16060_core.c b/drivers/staging/iio/gyro/adis16060_core.c
index 2f841cb19238..08aaf2783895 100644
--- a/drivers/staging/iio/gyro/adis16060_core.c
+++ b/drivers/staging/iio/gyro/adis16060_core.c
@@ -15,8 +15,8 @@
15#include <linux/slab.h> 15#include <linux/slab.h>
16#include <linux/sysfs.h> 16#include <linux/sysfs.h>
17 17
18#include "../iio.h" 18#include <linux/iio/iio.h>
19#include "../sysfs.h" 19#include <linux/iio/sysfs.h>
20 20
21#define ADIS16060_GYRO 0x20 /* Measure Angular Rate (Gyro) */ 21#define ADIS16060_GYRO 0x20 /* Measure Angular Rate (Gyro) */
22#define ADIS16060_TEMP_OUT 0x10 /* Measure Temperature */ 22#define ADIS16060_TEMP_OUT 0x10 /* Measure Temperature */
diff --git a/drivers/staging/iio/gyro/adis16080_core.c b/drivers/staging/iio/gyro/adis16080_core.c
index 608b93d07484..7e3695ba628b 100644
--- a/drivers/staging/iio/gyro/adis16080_core.c
+++ b/drivers/staging/iio/gyro/adis16080_core.c
@@ -14,8 +14,8 @@
14#include <linux/sysfs.h> 14#include <linux/sysfs.h>
15#include <linux/module.h> 15#include <linux/module.h>
16 16
17#include "../iio.h" 17#include <linux/iio/iio.h>
18#include "../sysfs.h" 18#include <linux/iio/sysfs.h>
19 19
20#define ADIS16080_DIN_GYRO (0 << 10) /* Gyroscope output */ 20#define ADIS16080_DIN_GYRO (0 << 10) /* Gyroscope output */
21#define ADIS16080_DIN_TEMP (1 << 10) /* Temperature output */ 21#define ADIS16080_DIN_TEMP (1 << 10) /* Temperature output */
diff --git a/drivers/staging/iio/gyro/adis16130_core.c b/drivers/staging/iio/gyro/adis16130_core.c
index 257bdf2bfb46..98aa1b92b9d4 100644
--- a/drivers/staging/iio/gyro/adis16130_core.c
+++ b/drivers/staging/iio/gyro/adis16130_core.c
@@ -16,8 +16,8 @@
16#include <linux/list.h> 16#include <linux/list.h>
17#include <linux/module.h> 17#include <linux/module.h>
18 18
19#include "../iio.h" 19#include <linux/iio/iio.h>
20#include "../sysfs.h" 20#include <linux/iio/sysfs.h>
21 21
22#define ADIS16130_CON 0x0 22#define ADIS16130_CON 0x0
23#define ADIS16130_CON_RD (1 << 6) 23#define ADIS16130_CON_RD (1 << 6)
diff --git a/drivers/staging/iio/gyro/adis16260_core.c b/drivers/staging/iio/gyro/adis16260_core.c
index bb2301833495..15253beab9a0 100644
--- a/drivers/staging/iio/gyro/adis16260_core.c
+++ b/drivers/staging/iio/gyro/adis16260_core.c
@@ -18,9 +18,9 @@
18#include <linux/list.h> 18#include <linux/list.h>
19#include <linux/module.h> 19#include <linux/module.h>
20 20
21#include "../iio.h" 21#include <linux/iio/iio.h>
22#include "../sysfs.h" 22#include <linux/iio/sysfs.h>
23#include "../buffer.h" 23#include <linux/iio/buffer.h>
24 24
25#include "adis16260.h" 25#include "adis16260.h"
26 26
diff --git a/drivers/staging/iio/gyro/adis16260_ring.c b/drivers/staging/iio/gyro/adis16260_ring.c
index 046f84d0eeca..25283376f2fc 100644
--- a/drivers/staging/iio/gyro/adis16260_ring.c
+++ b/drivers/staging/iio/gyro/adis16260_ring.c
@@ -5,9 +5,9 @@
5#include <linux/spi/spi.h> 5#include <linux/spi/spi.h>
6#include <linux/slab.h> 6#include <linux/slab.h>
7 7
8#include "../iio.h" 8#include <linux/iio/iio.h>
9#include "../ring_sw.h" 9#include "../ring_sw.h"
10#include "../trigger_consumer.h" 10#include <linux/iio/trigger_consumer.h>
11#include "adis16260.h" 11#include "adis16260.h"
12 12
13/** 13/**
diff --git a/drivers/staging/iio/gyro/adis16260_trigger.c b/drivers/staging/iio/gyro/adis16260_trigger.c
index 8299cd18d705..dc56f3263762 100644
--- a/drivers/staging/iio/gyro/adis16260_trigger.c
+++ b/drivers/staging/iio/gyro/adis16260_trigger.c
@@ -3,8 +3,8 @@
3#include <linux/spi/spi.h> 3#include <linux/spi/spi.h>
4#include <linux/export.h> 4#include <linux/export.h>
5 5
6#include "../iio.h" 6#include <linux/iio/iio.h>
7#include "../trigger.h" 7#include <linux/iio/trigger.h>
8#include "adis16260.h" 8#include "adis16260.h"
9 9
10/** 10/**
diff --git a/drivers/staging/iio/gyro/adxrs450_core.c b/drivers/staging/iio/gyro/adxrs450_core.c
index 12935057836e..06a9e974f010 100644
--- a/drivers/staging/iio/gyro/adxrs450_core.c
+++ b/drivers/staging/iio/gyro/adxrs450_core.c
@@ -18,8 +18,8 @@
18#include <linux/list.h> 18#include <linux/list.h>
19#include <linux/module.h> 19#include <linux/module.h>
20 20
21#include "../iio.h" 21#include <linux/iio/iio.h>
22#include "../sysfs.h" 22#include <linux/iio/sysfs.h>
23 23
24#include "adxrs450.h" 24#include "adxrs450.h"
25 25
diff --git a/drivers/staging/iio/iio_dummy_evgen.c b/drivers/staging/iio/iio_dummy_evgen.c
index f39f346bf04f..0cd4fe916bf9 100644
--- a/drivers/staging/iio/iio_dummy_evgen.c
+++ b/drivers/staging/iio/iio_dummy_evgen.c
@@ -22,8 +22,8 @@
22#include <linux/sysfs.h> 22#include <linux/sysfs.h>
23 23
24#include "iio_dummy_evgen.h" 24#include "iio_dummy_evgen.h"
25#include "iio.h" 25#include <linux/iio/iio.h>
26#include "sysfs.h" 26#include <linux/iio/sysfs.h>
27 27
28/* Fiddly bit of faking and irq without hardware */ 28/* Fiddly bit of faking and irq without hardware */
29#define IIO_EVENTGEN_NO 10 29#define IIO_EVENTGEN_NO 10
diff --git a/drivers/staging/iio/iio_hwmon.c b/drivers/staging/iio/iio_hwmon.c
index a603a5f51f93..b03554fee443 100644
--- a/drivers/staging/iio/iio_hwmon.c
+++ b/drivers/staging/iio/iio_hwmon.c
@@ -14,8 +14,8 @@
14#include <linux/platform_device.h> 14#include <linux/platform_device.h>
15#include <linux/hwmon.h> 15#include <linux/hwmon.h>
16#include <linux/hwmon-sysfs.h> 16#include <linux/hwmon-sysfs.h>
17#include "consumer.h" 17#include <linux/iio/consumer.h>
18#include "types.h" 18#include <linux/iio/types.h>
19 19
20/** 20/**
21 * struct iio_hwmon_state - device instance state 21 * struct iio_hwmon_state - device instance state
diff --git a/drivers/staging/iio/iio_simple_dummy.c b/drivers/staging/iio/iio_simple_dummy.c
index dbeb04c70f0f..fa4a65329009 100644
--- a/drivers/staging/iio/iio_simple_dummy.c
+++ b/drivers/staging/iio/iio_simple_dummy.c
@@ -19,10 +19,10 @@
19#include <linux/module.h> 19#include <linux/module.h>
20#include <linux/moduleparam.h> 20#include <linux/moduleparam.h>
21 21
22#include "iio.h" 22#include <linux/iio/iio.h>
23#include "sysfs.h" 23#include <linux/iio/sysfs.h>
24#include "events.h" 24#include <linux/iio/events.h>
25#include "buffer.h" 25#include <linux/iio/buffer.h>
26#include "iio_simple_dummy.h" 26#include "iio_simple_dummy.h"
27 27
28/* 28/*
diff --git a/drivers/staging/iio/iio_simple_dummy_buffer.c b/drivers/staging/iio/iio_simple_dummy_buffer.c
index 49e7aa19889f..372606572d15 100644
--- a/drivers/staging/iio/iio_simple_dummy_buffer.c
+++ b/drivers/staging/iio/iio_simple_dummy_buffer.c
@@ -18,9 +18,9 @@
18#include <linux/irq.h> 18#include <linux/irq.h>
19#include <linux/bitmap.h> 19#include <linux/bitmap.h>
20 20
21#include "iio.h" 21#include <linux/iio/iio.h>
22#include "trigger_consumer.h" 22#include <linux/iio/trigger_consumer.h>
23#include "kfifo_buf.h" 23#include <linux/iio/kfifo_buf.h>
24 24
25#include "iio_simple_dummy.h" 25#include "iio_simple_dummy.h"
26 26
diff --git a/drivers/staging/iio/iio_simple_dummy_events.c b/drivers/staging/iio/iio_simple_dummy_events.c
index 449c7a5ece80..f85bd197ed31 100644
--- a/drivers/staging/iio/iio_simple_dummy_events.c
+++ b/drivers/staging/iio/iio_simple_dummy_events.c
@@ -12,9 +12,9 @@
12#include <linux/interrupt.h> 12#include <linux/interrupt.h>
13#include <linux/irq.h> 13#include <linux/irq.h>
14 14
15#include "iio.h" 15#include <linux/iio/iio.h>
16#include "sysfs.h" 16#include <linux/iio/sysfs.h>
17#include "events.h" 17#include <linux/iio/events.h>
18#include "iio_simple_dummy.h" 18#include "iio_simple_dummy.h"
19 19
20/* Evgen 'fakes' interrupt events for this example */ 20/* Evgen 'fakes' interrupt events for this example */
diff --git a/drivers/staging/iio/impedance-analyzer/ad5933.c b/drivers/staging/iio/impedance-analyzer/ad5933.c
index 8a0485e69747..9d99a7f67fa4 100644
--- a/drivers/staging/iio/impedance-analyzer/ad5933.c
+++ b/drivers/staging/iio/impedance-analyzer/ad5933.c
@@ -19,9 +19,9 @@
19#include <linux/module.h> 19#include <linux/module.h>
20#include <asm/div64.h> 20#include <asm/div64.h>
21 21
22#include "../iio.h" 22#include <linux/iio/iio.h>
23#include "../sysfs.h" 23#include <linux/iio/sysfs.h>
24#include "../buffer.h" 24#include <linux/iio/buffer.h>
25#include "../ring_sw.h" 25#include "../ring_sw.h"
26 26
27#include "ad5933.h" 27#include "ad5933.h"
diff --git a/drivers/staging/iio/imu/adis16400_core.c b/drivers/staging/iio/imu/adis16400_core.c
index 58a150c1e435..68ecc1525017 100644
--- a/drivers/staging/iio/imu/adis16400_core.c
+++ b/drivers/staging/iio/imu/adis16400_core.c
@@ -26,9 +26,9 @@
26#include <linux/list.h> 26#include <linux/list.h>
27#include <linux/module.h> 27#include <linux/module.h>
28 28
29#include "../iio.h" 29#include <linux/iio/iio.h>
30#include "../sysfs.h" 30#include <linux/iio/sysfs.h>
31#include "../buffer.h" 31#include <linux/iio/buffer.h>
32#include "adis16400.h" 32#include "adis16400.h"
33 33
34enum adis16400_chip_variant { 34enum adis16400_chip_variant {
diff --git a/drivers/staging/iio/imu/adis16400_ring.c b/drivers/staging/iio/imu/adis16400_ring.c
index d964004fe11b..e43c0e2f43a6 100644
--- a/drivers/staging/iio/imu/adis16400_ring.c
+++ b/drivers/staging/iio/imu/adis16400_ring.c
@@ -6,9 +6,9 @@
6#include <linux/bitops.h> 6#include <linux/bitops.h>
7#include <linux/export.h> 7#include <linux/export.h>
8 8
9#include "../iio.h" 9#include <linux/iio/iio.h>
10#include "../ring_sw.h" 10#include "../ring_sw.h"
11#include "../trigger_consumer.h" 11#include <linux/iio/trigger_consumer.h>
12#include "adis16400.h" 12#include "adis16400.h"
13 13
14/** 14/**
diff --git a/drivers/staging/iio/imu/adis16400_trigger.c b/drivers/staging/iio/imu/adis16400_trigger.c
index 5bf000757522..bd22e6cc11c3 100644
--- a/drivers/staging/iio/imu/adis16400_trigger.c
+++ b/drivers/staging/iio/imu/adis16400_trigger.c
@@ -3,8 +3,8 @@
3#include <linux/spi/spi.h> 3#include <linux/spi/spi.h>
4#include <linux/export.h> 4#include <linux/export.h>
5 5
6#include "../iio.h" 6#include <linux/iio/iio.h>
7#include "../trigger.h" 7#include <linux/iio/trigger.h>
8#include "adis16400.h" 8#include "adis16400.h"
9 9
10/** 10/**
diff --git a/drivers/staging/iio/industrialio-buffer.c b/drivers/staging/iio/industrialio-buffer.c
index b409b95b5ee5..b5b2c38045c5 100644
--- a/drivers/staging/iio/industrialio-buffer.c
+++ b/drivers/staging/iio/industrialio-buffer.c
@@ -21,10 +21,10 @@
21#include <linux/slab.h> 21#include <linux/slab.h>
22#include <linux/poll.h> 22#include <linux/poll.h>
23 23
24#include "iio.h" 24#include <linux/iio/iio.h>
25#include "iio_core.h" 25#include "iio_core.h"
26#include "sysfs.h" 26#include <linux/iio/sysfs.h>
27#include "buffer.h" 27#include <linux/iio/buffer.h>
28 28
29static const char * const iio_endian_prefix[] = { 29static const char * const iio_endian_prefix[] = {
30 [IIO_BE] = "be", 30 [IIO_BE] = "be",
diff --git a/drivers/staging/iio/industrialio-core.c b/drivers/staging/iio/industrialio-core.c
index db55b815a24e..dd1a6a2e81c0 100644
--- a/drivers/staging/iio/industrialio-core.c
+++ b/drivers/staging/iio/industrialio-core.c
@@ -23,11 +23,11 @@
23#include <linux/slab.h> 23#include <linux/slab.h>
24#include <linux/anon_inodes.h> 24#include <linux/anon_inodes.h>
25#include <linux/debugfs.h> 25#include <linux/debugfs.h>
26#include "iio.h" 26#include <linux/iio/iio.h>
27#include "iio_core.h" 27#include "iio_core.h"
28#include "iio_core_trigger.h" 28#include "iio_core_trigger.h"
29#include "sysfs.h" 29#include <linux/iio/sysfs.h>
30#include "events.h" 30#include <linux/iio/events.h>
31 31
32/* IDA to assign each registered device a unique id*/ 32/* IDA to assign each registered device a unique id*/
33static DEFINE_IDA(iio_ida); 33static DEFINE_IDA(iio_ida);
diff --git a/drivers/staging/iio/industrialio-event.c b/drivers/staging/iio/industrialio-event.c
index 5fdf739e38f9..5fcf50b1ae5a 100644
--- a/drivers/staging/iio/industrialio-event.c
+++ b/drivers/staging/iio/industrialio-event.c
@@ -20,10 +20,10 @@
20#include <linux/slab.h> 20#include <linux/slab.h>
21#include <linux/uaccess.h> 21#include <linux/uaccess.h>
22#include <linux/wait.h> 22#include <linux/wait.h>
23#include "iio.h" 23#include <linux/iio/iio.h>
24#include "iio_core.h" 24#include "iio_core.h"
25#include "sysfs.h" 25#include <linux/iio/sysfs.h>
26#include "events.h" 26#include <linux/iio/events.h>
27 27
28/** 28/**
29 * struct iio_event_interface - chrdev interface for an event line 29 * struct iio_event_interface - chrdev interface for an event line
diff --git a/drivers/staging/iio/industrialio-trigger.c b/drivers/staging/iio/industrialio-trigger.c
index 47ecadd4818d..03fee2e097ca 100644
--- a/drivers/staging/iio/industrialio-trigger.c
+++ b/drivers/staging/iio/industrialio-trigger.c
@@ -15,11 +15,11 @@
15#include <linux/list.h> 15#include <linux/list.h>
16#include <linux/slab.h> 16#include <linux/slab.h>
17 17
18#include "iio.h" 18#include <linux/iio/iio.h>
19#include "trigger.h" 19#include <linux/iio/trigger.h>
20#include "iio_core.h" 20#include "iio_core.h"
21#include "iio_core_trigger.h" 21#include "iio_core_trigger.h"
22#include "trigger_consumer.h" 22#include <linux/iio/trigger_consumer.h>
23 23
24/* RFC - Question of approach 24/* RFC - Question of approach
25 * Make the common case (single sensor single trigger) 25 * Make the common case (single sensor single trigger)
diff --git a/drivers/staging/iio/inkern.c b/drivers/staging/iio/inkern.c
index de2c8ea64965..22ddf62b107c 100644
--- a/drivers/staging/iio/inkern.c
+++ b/drivers/staging/iio/inkern.c
@@ -11,11 +11,11 @@
11#include <linux/slab.h> 11#include <linux/slab.h>
12#include <linux/mutex.h> 12#include <linux/mutex.h>
13 13
14#include "iio.h" 14#include <linux/iio/iio.h>
15#include "iio_core.h" 15#include "iio_core.h"
16#include "machine.h" 16#include <linux/iio/machine.h>
17#include "driver.h" 17#include <linux/iio/driver.h>
18#include "consumer.h" 18#include <linux/iio/consumer.h>
19 19
20struct iio_map_internal { 20struct iio_map_internal {
21 struct iio_dev *indio_dev; 21 struct iio_dev *indio_dev;
diff --git a/drivers/staging/iio/kfifo_buf.c b/drivers/staging/iio/kfifo_buf.c
index 9f3bd59c0e72..6bf9d05f4841 100644
--- a/drivers/staging/iio/kfifo_buf.c
+++ b/drivers/staging/iio/kfifo_buf.c
@@ -5,8 +5,7 @@
5#include <linux/workqueue.h> 5#include <linux/workqueue.h>
6#include <linux/kfifo.h> 6#include <linux/kfifo.h>
7#include <linux/mutex.h> 7#include <linux/mutex.h>
8 8#include <linux/iio/kfifo_buf.h>
9#include "kfifo_buf.h"
10 9
11struct iio_kfifo { 10struct iio_kfifo {
12 struct iio_buffer buffer; 11 struct iio_buffer buffer;
diff --git a/drivers/staging/iio/light/isl29018.c b/drivers/staging/iio/light/isl29018.c
index 2c894a6f7881..92283ebafa55 100644
--- a/drivers/staging/iio/light/isl29018.c
+++ b/drivers/staging/iio/light/isl29018.c
@@ -28,8 +28,8 @@
28#include <linux/delay.h> 28#include <linux/delay.h>
29#include <linux/regmap.h> 29#include <linux/regmap.h>
30#include <linux/slab.h> 30#include <linux/slab.h>
31#include "../iio.h" 31#include <linux/iio/iio.h>
32#include "../sysfs.h" 32#include <linux/iio/sysfs.h>
33 33
34#define CONVERSION_TIME_MS 100 34#define CONVERSION_TIME_MS 100
35 35
diff --git a/drivers/staging/iio/light/isl29028.c b/drivers/staging/iio/light/isl29028.c
index 7057d9b56624..2ada20e65f22 100644
--- a/drivers/staging/iio/light/isl29028.c
+++ b/drivers/staging/iio/light/isl29028.c
@@ -24,8 +24,8 @@
24#include <linux/delay.h> 24#include <linux/delay.h>
25#include <linux/slab.h> 25#include <linux/slab.h>
26#include <linux/regmap.h> 26#include <linux/regmap.h>
27#include "../iio.h" 27#include <linux/iio/iio.h>
28#include "../sysfs.h" 28#include <linux/iio/sysfs.h>
29 29
30#define CONVERSION_TIME_MS 100 30#define CONVERSION_TIME_MS 100
31 31
diff --git a/drivers/staging/iio/light/tsl2563.c b/drivers/staging/iio/light/tsl2563.c
index a1e5cbeb25ac..635136004103 100644
--- a/drivers/staging/iio/light/tsl2563.c
+++ b/drivers/staging/iio/light/tsl2563.c
@@ -35,9 +35,9 @@
35#include <linux/err.h> 35#include <linux/err.h>
36#include <linux/slab.h> 36#include <linux/slab.h>
37 37
38#include "../iio.h" 38#include <linux/iio/iio.h>
39#include "../sysfs.h" 39#include <linux/iio/sysfs.h>
40#include "../events.h" 40#include <linux/iio/events.h>
41#include "tsl2563.h" 41#include "tsl2563.h"
42 42
43/* Use this many bits for fraction part. */ 43/* Use this many bits for fraction part. */
diff --git a/drivers/staging/iio/light/tsl2583.c b/drivers/staging/iio/light/tsl2583.c
index 8671d98e0448..51b636241d97 100644
--- a/drivers/staging/iio/light/tsl2583.c
+++ b/drivers/staging/iio/light/tsl2583.c
@@ -28,7 +28,7 @@
28#include <linux/unistd.h> 28#include <linux/unistd.h>
29#include <linux/slab.h> 29#include <linux/slab.h>
30#include <linux/module.h> 30#include <linux/module.h>
31#include "../iio.h" 31#include <linux/iio/iio.h>
32 32
33#define TSL258X_MAX_DEVICE_REGS 32 33#define TSL258X_MAX_DEVICE_REGS 32
34 34
diff --git a/drivers/staging/iio/light/tsl2x7x_core.c b/drivers/staging/iio/light/tsl2x7x_core.c
index f3fc85a22b1a..dfc3da6e92e9 100755
--- a/drivers/staging/iio/light/tsl2x7x_core.c
+++ b/drivers/staging/iio/light/tsl2x7x_core.c
@@ -28,10 +28,10 @@
28#include <linux/slab.h> 28#include <linux/slab.h>
29#include <linux/module.h> 29#include <linux/module.h>
30#include <linux/version.h> 30#include <linux/version.h>
31#include <linux/iio/events.h>
32#include <linux/iio/iio.h>
33#include <linux/iio/sysfs.h>
31#include "tsl2x7x.h" 34#include "tsl2x7x.h"
32#include "../events.h"
33#include "../iio.h"
34#include "../sysfs.h"
35 35
36/* Cal defs*/ 36/* Cal defs*/
37#define PROX_STAT_CAL 0 37#define PROX_STAT_CAL 0
diff --git a/drivers/staging/iio/magnetometer/ak8975.c b/drivers/staging/iio/magnetometer/ak8975.c
index 000886fb81a9..d088548c2fa8 100644
--- a/drivers/staging/iio/magnetometer/ak8975.c
+++ b/drivers/staging/iio/magnetometer/ak8975.c
@@ -30,8 +30,8 @@
30 30
31#include <linux/gpio.h> 31#include <linux/gpio.h>
32 32
33#include "../iio.h" 33#include <linux/iio/iio.h>
34#include "../sysfs.h" 34#include <linux/iio/sysfs.h>
35/* 35/*
36 * Register definitions, as well as various shifts and masks to get at the 36 * Register definitions, as well as various shifts and masks to get at the
37 * individual fields of the registers. 37 * individual fields of the registers.
diff --git a/drivers/staging/iio/magnetometer/hmc5843.c b/drivers/staging/iio/magnetometer/hmc5843.c
index 27c26294b261..3433c41fe548 100644
--- a/drivers/staging/iio/magnetometer/hmc5843.c
+++ b/drivers/staging/iio/magnetometer/hmc5843.c
@@ -22,8 +22,8 @@
22#include <linux/i2c.h> 22#include <linux/i2c.h>
23#include <linux/slab.h> 23#include <linux/slab.h>
24#include <linux/types.h> 24#include <linux/types.h>
25#include "../iio.h" 25#include <linux/iio/iio.h>
26#include "../sysfs.h" 26#include <linux/iio/sysfs.h>
27 27
28#define HMC5843_I2C_ADDRESS 0x1E 28#define HMC5843_I2C_ADDRESS 0x1E
29 29
diff --git a/drivers/staging/iio/meter/ade7753.c b/drivers/staging/iio/meter/ade7753.c
index 57baac6c0d40..9b26ae1f23b7 100644
--- a/drivers/staging/iio/meter/ade7753.c
+++ b/drivers/staging/iio/meter/ade7753.c
@@ -18,8 +18,8 @@
18#include <linux/list.h> 18#include <linux/list.h>
19#include <linux/module.h> 19#include <linux/module.h>
20 20
21#include "../iio.h" 21#include <linux/iio/iio.h>
22#include "../sysfs.h" 22#include <linux/iio/sysfs.h>
23#include "meter.h" 23#include "meter.h"
24#include "ade7753.h" 24#include "ade7753.h"
25 25
diff --git a/drivers/staging/iio/meter/ade7754.c b/drivers/staging/iio/meter/ade7754.c
index 8d81c92007e9..02d10dfe8ac5 100644
--- a/drivers/staging/iio/meter/ade7754.c
+++ b/drivers/staging/iio/meter/ade7754.c
@@ -18,8 +18,8 @@
18#include <linux/list.h> 18#include <linux/list.h>
19#include <linux/module.h> 19#include <linux/module.h>
20 20
21#include "../iio.h" 21#include <linux/iio/iio.h>
22#include "../sysfs.h" 22#include <linux/iio/sysfs.h>
23#include "meter.h" 23#include "meter.h"
24#include "ade7754.h" 24#include "ade7754.h"
25 25
diff --git a/drivers/staging/iio/meter/ade7758_core.c b/drivers/staging/iio/meter/ade7758_core.c
index 729c03311b9e..4a3b429003f1 100644
--- a/drivers/staging/iio/meter/ade7758_core.c
+++ b/drivers/staging/iio/meter/ade7758_core.c
@@ -18,9 +18,9 @@
18#include <linux/list.h> 18#include <linux/list.h>
19#include <linux/module.h> 19#include <linux/module.h>
20 20
21#include "../iio.h" 21#include <linux/iio/iio.h>
22#include "../sysfs.h" 22#include <linux/iio/sysfs.h>
23#include "../buffer.h" 23#include <linux/iio/buffer.h>
24#include "meter.h" 24#include "meter.h"
25#include "ade7758.h" 25#include "ade7758.h"
26 26
diff --git a/drivers/staging/iio/meter/ade7758_ring.c b/drivers/staging/iio/meter/ade7758_ring.c
index b37bc98ce4d7..7b9be8a2cc50 100644
--- a/drivers/staging/iio/meter/ade7758_ring.c
+++ b/drivers/staging/iio/meter/ade7758_ring.c
@@ -12,9 +12,9 @@
12#include <linux/slab.h> 12#include <linux/slab.h>
13#include <asm/unaligned.h> 13#include <asm/unaligned.h>
14 14
15#include "../iio.h" 15#include <linux/iio/iio.h>
16#include "../ring_sw.h" 16#include "../ring_sw.h"
17#include "../trigger_consumer.h" 17#include <linux/iio/trigger_consumer.h>
18#include "ade7758.h" 18#include "ade7758.h"
19 19
20/** 20/**
diff --git a/drivers/staging/iio/meter/ade7758_trigger.c b/drivers/staging/iio/meter/ade7758_trigger.c
index b6569c706651..5c48d382dfdb 100644
--- a/drivers/staging/iio/meter/ade7758_trigger.c
+++ b/drivers/staging/iio/meter/ade7758_trigger.c
@@ -11,8 +11,8 @@
11#include <linux/spi/spi.h> 11#include <linux/spi/spi.h>
12#include <linux/export.h> 12#include <linux/export.h>
13 13
14#include "../iio.h" 14#include <linux/iio/iio.h>
15#include "../trigger.h" 15#include <linux/iio/trigger.h>
16#include "ade7758.h" 16#include "ade7758.h"
17 17
18/** 18/**
diff --git a/drivers/staging/iio/meter/ade7759.c b/drivers/staging/iio/meter/ade7759.c
index 0beab478dcd9..1f2b74add572 100644
--- a/drivers/staging/iio/meter/ade7759.c
+++ b/drivers/staging/iio/meter/ade7759.c
@@ -18,8 +18,8 @@
18#include <linux/list.h> 18#include <linux/list.h>
19#include <linux/module.h> 19#include <linux/module.h>
20 20
21#include "../iio.h" 21#include <linux/iio/iio.h>
22#include "../sysfs.h" 22#include <linux/iio/sysfs.h>
23#include "meter.h" 23#include "meter.h"
24#include "ade7759.h" 24#include "ade7759.h"
25 25
diff --git a/drivers/staging/iio/meter/ade7854-i2c.c b/drivers/staging/iio/meter/ade7854-i2c.c
index 1e1faa0479d3..c87c86b095e0 100644
--- a/drivers/staging/iio/meter/ade7854-i2c.c
+++ b/drivers/staging/iio/meter/ade7854-i2c.c
@@ -12,7 +12,7 @@
12#include <linux/slab.h> 12#include <linux/slab.h>
13#include <linux/module.h> 13#include <linux/module.h>
14 14
15#include "../iio.h" 15#include <linux/iio/iio.h>
16#include "ade7854.h" 16#include "ade7854.h"
17 17
18static int ade7854_i2c_write_reg_8(struct device *dev, 18static int ade7854_i2c_write_reg_8(struct device *dev,
diff --git a/drivers/staging/iio/meter/ade7854-spi.c b/drivers/staging/iio/meter/ade7854-spi.c
index 81121862c1bd..11c2cef0e73b 100644
--- a/drivers/staging/iio/meter/ade7854-spi.c
+++ b/drivers/staging/iio/meter/ade7854-spi.c
@@ -12,7 +12,7 @@
12#include <linux/slab.h> 12#include <linux/slab.h>
13#include <linux/module.h> 13#include <linux/module.h>
14 14
15#include "../iio.h" 15#include <linux/iio/iio.h>
16#include "ade7854.h" 16#include "ade7854.h"
17 17
18static int ade7854_spi_write_reg_8(struct device *dev, 18static int ade7854_spi_write_reg_8(struct device *dev,
diff --git a/drivers/staging/iio/meter/ade7854.c b/drivers/staging/iio/meter/ade7854.c
index 49c01c5c1b59..2f3c1e2a4b14 100644
--- a/drivers/staging/iio/meter/ade7854.c
+++ b/drivers/staging/iio/meter/ade7854.c
@@ -17,8 +17,8 @@
17#include <linux/list.h> 17#include <linux/list.h>
18#include <linux/module.h> 18#include <linux/module.h>
19 19
20#include "../iio.h" 20#include <linux/iio/iio.h>
21#include "../sysfs.h" 21#include <linux/iio/sysfs.h>
22#include "meter.h" 22#include "meter.h"
23#include "ade7854.h" 23#include "ade7854.h"
24 24
diff --git a/drivers/staging/iio/meter/meter.h b/drivers/staging/iio/meter/meter.h
index 6a3db1423631..23e1b5f480a9 100644
--- a/drivers/staging/iio/meter/meter.h
+++ b/drivers/staging/iio/meter/meter.h
@@ -1,4 +1,4 @@
1#include "../sysfs.h" 1#include <linux/iio/sysfs.h>
2 2
3/* metering ic types of attribute */ 3/* metering ic types of attribute */
4 4
diff --git a/drivers/staging/iio/resolver/ad2s1200.c b/drivers/staging/iio/resolver/ad2s1200.c
index 0465e5dff23a..48e70e9effd5 100644
--- a/drivers/staging/iio/resolver/ad2s1200.c
+++ b/drivers/staging/iio/resolver/ad2s1200.c
@@ -19,8 +19,8 @@
19#include <linux/gpio.h> 19#include <linux/gpio.h>
20#include <linux/module.h> 20#include <linux/module.h>
21 21
22#include "../iio.h" 22#include <linux/iio/iio.h>
23#include "../sysfs.h" 23#include <linux/iio/sysfs.h>
24 24
25#define DRV_NAME "ad2s1200" 25#define DRV_NAME "ad2s1200"
26 26
diff --git a/drivers/staging/iio/resolver/ad2s1210.c b/drivers/staging/iio/resolver/ad2s1210.c
index c6ced163105d..4d580e238eb8 100644
--- a/drivers/staging/iio/resolver/ad2s1210.c
+++ b/drivers/staging/iio/resolver/ad2s1210.c
@@ -18,8 +18,8 @@
18#include <linux/gpio.h> 18#include <linux/gpio.h>
19#include <linux/module.h> 19#include <linux/module.h>
20 20
21#include "../iio.h" 21#include <linux/iio/iio.h>
22#include "../sysfs.h" 22#include <linux/iio/sysfs.h>
23#include "ad2s1210.h" 23#include "ad2s1210.h"
24 24
25#define DRV_NAME "ad2s1210" 25#define DRV_NAME "ad2s1210"
diff --git a/drivers/staging/iio/resolver/ad2s90.c b/drivers/staging/iio/resolver/ad2s90.c
index 20ca5298cdf2..cb689104937f 100644
--- a/drivers/staging/iio/resolver/ad2s90.c
+++ b/drivers/staging/iio/resolver/ad2s90.c
@@ -16,8 +16,8 @@
16#include <linux/sysfs.h> 16#include <linux/sysfs.h>
17#include <linux/module.h> 17#include <linux/module.h>
18 18
19#include "../iio.h" 19#include <linux/iio/iio.h>
20#include "../sysfs.h" 20#include <linux/iio/sysfs.h>
21 21
22struct ad2s90_state { 22struct ad2s90_state {
23 struct mutex lock; 23 struct mutex lock;
diff --git a/drivers/staging/iio/ring_sw.c b/drivers/staging/iio/ring_sw.c
index b9945ec44faa..9358c6cb1c72 100644
--- a/drivers/staging/iio/ring_sw.c
+++ b/drivers/staging/iio/ring_sw.c
@@ -15,7 +15,7 @@
15#include <linux/sched.h> 15#include <linux/sched.h>
16#include <linux/poll.h> 16#include <linux/poll.h>
17#include "ring_sw.h" 17#include "ring_sw.h"
18#include "trigger.h" 18#include <linux/iio/trigger.h>
19 19
20/** 20/**
21 * struct iio_sw_ring_buffer - software ring buffer 21 * struct iio_sw_ring_buffer - software ring buffer
diff --git a/drivers/staging/iio/ring_sw.h b/drivers/staging/iio/ring_sw.h
index 7556e2122367..a5857aa7aefa 100644
--- a/drivers/staging/iio/ring_sw.h
+++ b/drivers/staging/iio/ring_sw.h
@@ -23,7 +23,7 @@
23 23
24#ifndef _IIO_RING_SW_H_ 24#ifndef _IIO_RING_SW_H_
25#define _IIO_RING_SW_H_ 25#define _IIO_RING_SW_H_
26#include "buffer.h" 26#include <linux/iio/buffer.h>
27 27
28struct iio_buffer *iio_sw_rb_allocate(struct iio_dev *indio_dev); 28struct iio_buffer *iio_sw_rb_allocate(struct iio_dev *indio_dev);
29void iio_sw_rb_free(struct iio_buffer *ring); 29void iio_sw_rb_free(struct iio_buffer *ring);
diff --git a/drivers/staging/iio/trigger/iio-trig-bfin-timer.c b/drivers/staging/iio/trigger/iio-trig-bfin-timer.c
index 665653d79f02..999fd2e00e81 100644
--- a/drivers/staging/iio/trigger/iio-trig-bfin-timer.c
+++ b/drivers/staging/iio/trigger/iio-trig-bfin-timer.c
@@ -15,8 +15,8 @@
15 15
16#include <asm/gptimers.h> 16#include <asm/gptimers.h>
17 17
18#include "../iio.h" 18#include <linux/iio/iio.h>
19#include "../trigger.h" 19#include <linux/iio/trigger.h>
20 20
21struct bfin_timer { 21struct bfin_timer {
22 unsigned short id, bit; 22 unsigned short id, bit;
diff --git a/drivers/staging/iio/trigger/iio-trig-gpio.c b/drivers/staging/iio/trigger/iio-trig-gpio.c
index a3465947235e..95fd2f780f52 100644
--- a/drivers/staging/iio/trigger/iio-trig-gpio.c
+++ b/drivers/staging/iio/trigger/iio-trig-gpio.c
@@ -22,8 +22,8 @@
22#include <linux/gpio.h> 22#include <linux/gpio.h>
23#include <linux/slab.h> 23#include <linux/slab.h>
24 24
25#include "../iio.h" 25#include <linux/iio/iio.h>
26#include "../trigger.h" 26#include <linux/iio/trigger.h>
27 27
28static LIST_HEAD(iio_gpio_trigger_list); 28static LIST_HEAD(iio_gpio_trigger_list);
29static DEFINE_MUTEX(iio_gpio_trigger_list_lock); 29static DEFINE_MUTEX(iio_gpio_trigger_list_lock);
diff --git a/drivers/staging/iio/trigger/iio-trig-periodic-rtc.c b/drivers/staging/iio/trigger/iio-trig-periodic-rtc.c
index a80cf67bf84d..2c3ccda745eb 100644
--- a/drivers/staging/iio/trigger/iio-trig-periodic-rtc.c
+++ b/drivers/staging/iio/trigger/iio-trig-periodic-rtc.c
@@ -16,8 +16,8 @@
16#include <linux/module.h> 16#include <linux/module.h>
17#include <linux/slab.h> 17#include <linux/slab.h>
18#include <linux/rtc.h> 18#include <linux/rtc.h>
19#include "../iio.h" 19#include <linux/iio/iio.h>
20#include "../trigger.h" 20#include <linux/iio/trigger.h>
21 21
22static LIST_HEAD(iio_prtc_trigger_list); 22static LIST_HEAD(iio_prtc_trigger_list);
23static DEFINE_MUTEX(iio_prtc_trigger_list_lock); 23static DEFINE_MUTEX(iio_prtc_trigger_list_lock);
diff --git a/drivers/staging/iio/trigger/iio-trig-sysfs.c b/drivers/staging/iio/trigger/iio-trig-sysfs.c
index 174dc65709d5..404ef192f89f 100644
--- a/drivers/staging/iio/trigger/iio-trig-sysfs.c
+++ b/drivers/staging/iio/trigger/iio-trig-sysfs.c
@@ -11,8 +11,8 @@
11#include <linux/slab.h> 11#include <linux/slab.h>
12#include <linux/list.h> 12#include <linux/list.h>
13 13
14#include "../iio.h" 14#include <linux/iio/iio.h>
15#include "../trigger.h" 15#include <linux/iio/trigger.h>
16 16
17struct iio_sysfs_trig { 17struct iio_sysfs_trig {
18 struct iio_trigger *trig; 18 struct iio_trigger *trig;
diff --git a/drivers/staging/iio/buffer.h b/include/linux/iio/buffer.h
index 3d3ea9ed53de..fb0fe46fd659 100644
--- a/drivers/staging/iio/buffer.h
+++ b/include/linux/iio/buffer.h
@@ -10,7 +10,7 @@
10#ifndef _IIO_BUFFER_GENERIC_H_ 10#ifndef _IIO_BUFFER_GENERIC_H_
11#define _IIO_BUFFER_GENERIC_H_ 11#define _IIO_BUFFER_GENERIC_H_
12#include <linux/sysfs.h> 12#include <linux/sysfs.h>
13#include "iio.h" 13#include <linux/iio/iio.h>
14 14
15#ifdef CONFIG_IIO_BUFFER 15#ifdef CONFIG_IIO_BUFFER
16 16
diff --git a/drivers/staging/iio/consumer.h b/include/linux/iio/consumer.h
index 36a060cd3a21..1a15e560a5a1 100644
--- a/drivers/staging/iio/consumer.h
+++ b/include/linux/iio/consumer.h
@@ -9,7 +9,7 @@
9 */ 9 */
10#ifndef _IIO_INKERN_CONSUMER_H_ 10#ifndef _IIO_INKERN_CONSUMER_H_
11#define _IIO_INKERN_CONSUMER_H 11#define _IIO_INKERN_CONSUMER_H
12#include "types.h" 12#include <linux/iio/types.h>
13 13
14struct iio_dev; 14struct iio_dev;
15struct iio_chan_spec; 15struct iio_chan_spec;
diff --git a/drivers/staging/iio/driver.h b/include/linux/iio/driver.h
index a4f8b2e05af5..a4f8b2e05af5 100644
--- a/drivers/staging/iio/driver.h
+++ b/include/linux/iio/driver.h
diff --git a/drivers/staging/iio/events.h b/include/linux/iio/events.h
index c25f0e3c92e9..b5acbf93c5da 100644
--- a/drivers/staging/iio/events.h
+++ b/include/linux/iio/events.h
@@ -11,7 +11,7 @@
11 11
12#include <linux/ioctl.h> 12#include <linux/ioctl.h>
13#include <linux/types.h> 13#include <linux/types.h>
14#include "types.h" 14#include <linux/iio/types.h>
15 15
16/** 16/**
17 * struct iio_event_data - The actual event being pushed to userspace 17 * struct iio_event_data - The actual event being pushed to userspace
diff --git a/drivers/staging/iio/iio.h b/include/linux/iio/iio.h
index 077034019c2f..9c0908a70466 100644
--- a/drivers/staging/iio/iio.h
+++ b/include/linux/iio/iio.h
@@ -12,7 +12,7 @@
12 12
13#include <linux/device.h> 13#include <linux/device.h>
14#include <linux/cdev.h> 14#include <linux/cdev.h>
15#include "types.h" 15#include <linux/iio/types.h>
16/* IIO TODO LIST */ 16/* IIO TODO LIST */
17/* 17/*
18 * Provide means of adjusting timer accuracy. 18 * Provide means of adjusting timer accuracy.
diff --git a/drivers/staging/iio/kfifo_buf.h b/include/linux/iio/kfifo_buf.h
index 9f7da016af04..014d5a13b32b 100644
--- a/drivers/staging/iio/kfifo_buf.h
+++ b/include/linux/iio/kfifo_buf.h
@@ -1,7 +1,7 @@
1 1
2#include <linux/kfifo.h> 2#include <linux/kfifo.h>
3#include "iio.h" 3#include <linux/iio/iio.h>
4#include "buffer.h" 4#include <linux/iio/buffer.h>
5 5
6struct iio_buffer *iio_kfifo_allocate(struct iio_dev *indio_dev); 6struct iio_buffer *iio_kfifo_allocate(struct iio_dev *indio_dev);
7void iio_kfifo_free(struct iio_buffer *r); 7void iio_kfifo_free(struct iio_buffer *r);
diff --git a/drivers/staging/iio/machine.h b/include/linux/iio/machine.h
index 0b1f19bfdc44..0b1f19bfdc44 100644
--- a/drivers/staging/iio/machine.h
+++ b/include/linux/iio/machine.h
diff --git a/drivers/staging/iio/sysfs.h b/include/linux/iio/sysfs.h
index bfedb73b850e..bfedb73b850e 100644
--- a/drivers/staging/iio/sysfs.h
+++ b/include/linux/iio/sysfs.h
diff --git a/drivers/staging/iio/trigger.h b/include/linux/iio/trigger.h
index 1cfca231db8f..1cfca231db8f 100644
--- a/drivers/staging/iio/trigger.h
+++ b/include/linux/iio/trigger.h
diff --git a/drivers/staging/iio/trigger_consumer.h b/include/linux/iio/trigger_consumer.h
index 60d64b356945..60d64b356945 100644
--- a/drivers/staging/iio/trigger_consumer.h
+++ b/include/linux/iio/trigger_consumer.h
diff --git a/drivers/staging/iio/types.h b/include/linux/iio/types.h
index 0c3213666901..0c3213666901 100644
--- a/drivers/staging/iio/types.h
+++ b/include/linux/iio/types.h