]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging:iio: Move adis library out of staging
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 13 Nov 2012 13:28:00 +0000 (13:28 +0000)
committerJonathan Cameron <jic23@kernel.org>
Mon, 19 Nov 2012 22:22:12 +0000 (22:22 +0000)
Now that the adis library no longer depends on the sw_ring buffer implementation
we can move it out of staging.

While we are at it also sort the entries in the iio Kconfig and Makefile to be
in alphabetical order.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
17 files changed:
drivers/iio/Kconfig
drivers/iio/Makefile
drivers/iio/imu/Kconfig [new file with mode: 0644]
drivers/iio/imu/Makefile [new file with mode: 0644]
drivers/iio/imu/adis.c [moved from drivers/staging/iio/imu/adis.c with 99% similarity]
drivers/iio/imu/adis_buffer.c [moved from drivers/staging/iio/imu/adis_buffer.c with 99% similarity]
drivers/iio/imu/adis_trigger.c [moved from drivers/staging/iio/imu/adis_trigger.c with 98% similarity]
drivers/staging/iio/accel/adis16201_core.c
drivers/staging/iio/accel/adis16203_core.c
drivers/staging/iio/accel/adis16204_core.c
drivers/staging/iio/accel/adis16209_core.c
drivers/staging/iio/accel/adis16220.h
drivers/staging/iio/accel/adis16240_core.c
drivers/staging/iio/gyro/adis16260.h
drivers/staging/iio/imu/Kconfig
drivers/staging/iio/imu/Makefile
include/linux/iio/imu/adis.h [moved from drivers/staging/iio/imu/adis.h with 100% similarity]

index 65ae734c607d0fdd162d39db0784d19f70f3902b..b2f963be39937d2f6fe0775f5c9510866e69f4ea 100644 (file)
@@ -63,11 +63,12 @@ config IIO_CONSUMERS_PER_TRIGGER
 source "drivers/iio/accel/Kconfig"
 source "drivers/iio/adc/Kconfig"
 source "drivers/iio/amplifiers/Kconfig"
-source "drivers/iio/light/Kconfig"
-source "drivers/iio/frequency/Kconfig"
-source "drivers/iio/dac/Kconfig"
 source "drivers/iio/common/Kconfig"
+source "drivers/iio/dac/Kconfig"
+source "drivers/iio/frequency/Kconfig"
 source "drivers/iio/gyro/Kconfig"
+source "drivers/iio/imu/Kconfig"
+source "drivers/iio/light/Kconfig"
 source "drivers/iio/magnetometer/Kconfig"
 
 endif # IIO
index 31d76a07ec65056afc59483ae19ee7001423b6c8..a0e8cdd67e4ddef91083600d1ea80b7e1ea069dd 100644 (file)
@@ -14,9 +14,10 @@ obj-$(CONFIG_IIO_KFIFO_BUF) += kfifo_buf.o
 obj-y += accel/
 obj-y += adc/
 obj-y += amplifiers/
-obj-y += light/
-obj-y += frequency/
-obj-y += dac/
 obj-y += common/
+obj-y += dac/
 obj-y += gyro/
+obj-y += frequency/
+obj-y += imu/
+obj-y += light/
 obj-y += magnetometer/
diff --git a/drivers/iio/imu/Kconfig b/drivers/iio/imu/Kconfig
new file mode 100644 (file)
index 0000000..c24410c
--- /dev/null
@@ -0,0 +1,11 @@
+config IIO_ADIS_LIB
+       tristate
+       help
+         A set of IO helper functions for the Analog Devices ADIS* device family.
+
+config IIO_ADIS_LIB_BUFFER
+       bool
+       select IIO_TRIGGERED_BUFFER
+       help
+         A set of buffer helper functions for the Analog Devices ADIS* device
+         family.
diff --git a/drivers/iio/imu/Makefile b/drivers/iio/imu/Makefile
new file mode 100644 (file)
index 0000000..97676ab
--- /dev/null
@@ -0,0 +1,8 @@
+#
+# Makefile for Inertial Measurement Units
+#
+
+adis_lib-y += adis.o
+adis_lib-$(CONFIG_IIO_ADIS_LIB_BUFFER) += adis_trigger.o
+adis_lib-$(CONFIG_IIO_ADIS_LIB_BUFFER) += adis_buffer.o
+obj-$(CONFIG_IIO_ADIS_LIB) += adis_lib.o
similarity index 99%
rename from drivers/staging/iio/imu/adis.c
rename to drivers/iio/imu/adis.c
index 0bd21022e4c086c7113add552b18559795f408a3..8259b774078f98babfdf0195c2a97042058ce960 100644 (file)
@@ -20,8 +20,7 @@
 #include <linux/iio/iio.h>
 #include <linux/iio/sysfs.h>
 #include <linux/iio/buffer.h>
-
-#include "adis.h"
+#include <linux/iio/imu/adis.h>
 
 #define ADIS_MSC_CTRL_DATA_RDY_EN      BIT(2)
 #define ADIS_MSC_CTRL_DATA_RDY_POL_HIGH        BIT(1)
similarity index 99%
rename from drivers/staging/iio/imu/adis_buffer.c
rename to drivers/iio/imu/adis_buffer.c
index 342758c14d2b89d9ab307333008031a23ef48d6a..a91b4cbdc73a571fc68acdaba040c7c52c949ed6 100644 (file)
@@ -18,8 +18,7 @@
 #include <linux/iio/buffer.h>
 #include <linux/iio/trigger_consumer.h>
 #include <linux/iio/triggered_buffer.h>
-
-#include  "adis.h"
+#include <linux/iio/imu/adis.h>
 
 int adis_update_scan_mode(struct iio_dev *indio_dev,
        const unsigned long *scan_mask)
similarity index 98%
rename from drivers/staging/iio/imu/adis_trigger.c
rename to drivers/iio/imu/adis_trigger.c
index 3e89b2e8370852c4627f326f4fbaaa19b11a9b9a..5a24c9cac3436ae3d833cac2c58b6913f4588dcc 100644 (file)
@@ -14,8 +14,7 @@
 
 #include <linux/iio/iio.h>
 #include <linux/iio/trigger.h>
-
-#include "adis.h"
+#include <linux/iio/imu/adis.h>
 
 static int adis_data_rdy_trigger_set_state(struct iio_trigger *trig,
                                                bool state)
index 833dd6b73bc3d6a79dd17db56891c5c85ec412e5..ccdc8d23f6a383a336613cdc15091263e7bb4470 100644 (file)
@@ -18,9 +18,9 @@
 #include <linux/iio/iio.h>
 #include <linux/iio/sysfs.h>
 #include <linux/iio/buffer.h>
+#include <linux/iio/imu/adis.h>
 
 #include "adis16201.h"
-#include "../imu/adis.h"
 
 static const u8 adis16201_addresses[] = {
        [ADIS16201_SCAN_ACC_X] = ADIS16201_XACCL_OFFS,
index f631e578fbd104ee24cf3059985e083f8ffb0a31..202985ea3531ffe99a2cc739f7a39182cf5cf37e 100644 (file)
@@ -18,9 +18,9 @@
 #include <linux/iio/iio.h>
 #include <linux/iio/sysfs.h>
 #include <linux/iio/buffer.h>
+#include <linux/iio/imu/adis.h>
 
 #include "adis16203.h"
-#include "../imu/adis.h"
 
 #define DRIVER_NAME            "adis16203"
 
index dbec841ce30c4fcdf2cd44d4c6c97bad220bc950..6dafad67cd239da86c0a5321bcb625a041817916 100644 (file)
@@ -21,9 +21,9 @@
 #include <linux/iio/iio.h>
 #include <linux/iio/sysfs.h>
 #include <linux/iio/buffer.h>
+#include <linux/iio/imu/adis.h>
 
 #include "adis16204.h"
-#include "../imu/adis.h"
 
 /* Unique to this driver currently */
 
index f9f9d582b32d90d73298733833c3b775733da9a5..d2921c30a8bb1f9f05dc02352de9a5c13fff3984 100644 (file)
@@ -19,9 +19,9 @@
 #include <linux/iio/iio.h>
 #include <linux/iio/sysfs.h>
 #include <linux/iio/buffer.h>
+#include <linux/iio/imu/adis.h>
 
 #include "adis16209.h"
-#include "../imu/adis.h"
 
 static const u8 adis16209_addresses[8][1] = {
        [ADIS16209_SCAN_SUPPLY] = { },
index 7cc4d2f3ec28264a62839c15a333d47c6ec34741..a894ad7fb26dc7d21ad6278969855f9ec19028ad 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef SPI_ADIS16220_H_
 #define SPI_ADIS16220_H_
 
-#include "../imu/adis.h"
+#include <linux/iio/imu/adis.h>
 
 #define ADIS16220_STARTUP_DELAY        220 /* ms */
 
index 3d1a8a9921ad9d6b28db046aa4110ac1734a75ad..d098b49cc18b99ecc163486b871e14d94097ca32 100644 (file)
@@ -22,9 +22,9 @@
 #include <linux/iio/iio.h>
 #include <linux/iio/sysfs.h>
 #include <linux/iio/buffer.h>
+#include <linux/iio/imu/adis.h>
 
 #include "adis16240.h"
-#include "../imu/adis.h"
 
 static ssize_t adis16240_spi_read_signed(struct device *dev,
                struct device_attribute *attr,
index ea5eba205bbfcba7cfddec3cf77a15a4df7eea76..df3c0b7e954a79c7b7616203eb60f2fd8b55013d 100644 (file)
@@ -2,7 +2,7 @@
 #define SPI_ADIS16260_H_
 
 #include "adis16260_platform_data.h"
-#include "../imu/adis.h"
+#include <linux/iio/imu/adis.h>
 
 #define ADIS16260_STARTUP_DELAY        220 /* ms */
 
index 2c564edeb1720c54420cd6ef462376115f18b70c..2c2f47de2630e1a0b8ded69801282e5f3dbb685e 100644 (file)
@@ -15,15 +15,3 @@ config ADIS16400
          (adis16400 series also have magnetometers).
 
 endmenu
-
-config IIO_ADIS_LIB
-       tristate
-       help
-         A set of IO helper functions for the Analog Devices ADIS* device family.
-
-config IIO_ADIS_LIB_BUFFER
-       bool
-       select IIO_TRIGGERED_BUFFER
-       help
-         A set of buffer helper functions for the Analog Devices ADIS* device
-         family.
index 65dafba1e5dfc643965fad9597c34f21ac6688cd..3400a13d152246bbaad503ee6cf157ffb4468e99 100644 (file)
@@ -5,8 +5,3 @@
 adis16400-y             := adis16400_core.o
 adis16400-$(CONFIG_IIO_BUFFER) += adis16400_ring.o adis16400_trigger.o
 obj-$(CONFIG_ADIS16400) += adis16400.o
-
-adis_lib-y += adis.o
-adis_lib-$(CONFIG_IIO_ADIS_LIB_BUFFER) += adis_trigger.o
-adis_lib-$(CONFIG_IIO_ADIS_LIB_BUFFER) += adis_buffer.o
-obj-$(CONFIG_IIO_ADIS_LIB) += adis_lib.o