]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio:light:tsl2563 move out of staging
authorJonathan Cameron <jic23@kernel.org>
Sat, 12 Jan 2013 10:35:00 +0000 (10:35 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sun, 27 Jan 2013 17:37:24 +0000 (17:37 +0000)
This driver is simple, uses the latest interfaces and contains few if
any controversial elements.  All of its interfaces have been in place
for a long time now.  Hence let's move it out of staging.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Peter Meerwald <pmeerw@pmeerw.net>
arch/arm/mach-omap2/board-rx51-peripherals.c
drivers/iio/light/Kconfig
drivers/iio/light/Makefile
drivers/iio/light/tsl2563.c [moved from drivers/staging/iio/light/tsl2563.c with 99% similarity]
drivers/staging/iio/light/Kconfig
drivers/staging/iio/light/Makefile
include/linux/platform_data/tsl2563.h [moved from drivers/staging/iio/light/tsl2563.h with 99% similarity]

index cf07e289b4eadb494f942ca966b4c78569102b82..f3d075baebb6232f70c8c25bd4f9b2922b47655e 100644 (file)
@@ -42,7 +42,7 @@
 #include <media/si4713.h>
 #include <linux/leds-lp5523.h>
 
-#include <../drivers/staging/iio/light/tsl2563.h>
+#include <linux/platform_data/tsl2563.h>
 #include <linux/lis3lv02d.h>
 
 #if defined(CONFIG_IR_RX51) || defined(CONFIG_IR_RX51_MODULE)
index dbf80abc834fd3f848a7945b9ddbf38da5a968d7..5ef1a396e0c9ba98f128f38277be9668af1ad80a 100644 (file)
@@ -32,6 +32,16 @@ config SENSORS_LM3533
          changes. The ALS-control output values can be set per zone for the
          three current output channels.
 
+config SENSORS_TSL2563
+       tristate "TAOS TSL2560, TSL2561, TSL2562 and TSL2563 ambient light sensors"
+       depends on I2C
+       help
+        If you say yes here you get support for the Taos TSL2560,
+        TSL2561, TSL2562 and TSL2563 ambient light sensors.
+
+        This driver can also be built as a module.  If so, the module
+        will be called tsl2563.
+
 config VCNL4000
        tristate "VCNL4000 combined ALS and proximity sensor"
        depends on I2C
index 21a8f0df140791d18e8b7765ae0a682b101f3be3..040d9c75f8e6277e964803676412240b328f51b6 100644 (file)
@@ -4,5 +4,6 @@
 
 obj-$(CONFIG_ADJD_S311)                += adjd_s311.o
 obj-$(CONFIG_SENSORS_LM3533)   += lm3533-als.o
+obj-$(CONFIG_SENSORS_TSL2563)  += tsl2563.o
 obj-$(CONFIG_VCNL4000)         += vcnl4000.o
 obj-$(CONFIG_HID_SENSOR_ALS)   += hid-sensor-als.o
similarity index 99%
rename from drivers/staging/iio/light/tsl2563.c
rename to drivers/iio/light/tsl2563.c
index b91d9bb8b083fffbcd157d86a65ac60a073080ef..fd8be69b7d05ac6e78ec3b3ff0766ca339ef1ce2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * drivers/i2c/chips/tsl2563.c
+ * drivers/iio/light/tsl2563.c
  *
  * Copyright (C) 2008 Nokia Corporation
  *
@@ -38,7 +38,7 @@
 #include <linux/iio/iio.h>
 #include <linux/iio/sysfs.h>
 #include <linux/iio/events.h>
-#include "tsl2563.h"
+#include <linux/platform_data/tsl2563.h>
 
 /* Use this many bits for fraction part. */
 #define ADC_FRAC_BITS          14
index 4bed30eac3ed1e822c64679e44fda340b2878620..ca8d6e66c899dd1fb1858b7da52f07b09ed8506d 100644 (file)
@@ -25,16 +25,6 @@ config SENSORS_ISL29028
         Proximity value via iio. The ISL29028 provides the concurrent sensing
         of ambient light and proximity.
 
-config SENSORS_TSL2563
-       tristate "TAOS TSL2560, TSL2561, TSL2562 and TSL2563 ambient light sensors"
-       depends on I2C
-       help
-        If you say yes here you get support for the Taos TSL2560,
-        TSL2561, TSL2562 and TSL2563 ambient light sensors.
-
-        This driver can also be built as a module.  If so, the module
-        will be called tsl2563.
-
 config TSL2583
        tristate "TAOS TSL2580, TSL2581 and TSL2583 light-to-digital converters"
        depends on I2C
index 141af1eb164c7b9249d928df57464b1f010ce7ca..9960fdf7c15b5b9746bd233c04971d43d22b5264 100644 (file)
@@ -2,7 +2,6 @@
 # Makefile for industrial I/O Light sensors
 #
 
-obj-$(CONFIG_SENSORS_TSL2563)  += tsl2563.o
 obj-$(CONFIG_SENSORS_ISL29018) += isl29018.o
 obj-$(CONFIG_SENSORS_ISL29028) += isl29028.o
 obj-$(CONFIG_TSL2583)  += tsl2583.o
similarity index 99%
rename from drivers/staging/iio/light/tsl2563.h
rename to include/linux/platform_data/tsl2563.h
index b97368bd7fffd2a4b284832a76d6590965fa1925..c90d7a09dda7bff0d2b71f3c369b6e07fbf8e5cb 100644 (file)
@@ -6,4 +6,3 @@ struct tsl2563_platform_data {
 };
 
 #endif /* __LINUX_TSL2563_H */
-