]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
tsl2550: Move from i2c/chips to misc
authorJean Delvare <khali@linux-fr.org>
Sat, 13 Mar 2010 19:56:54 +0000 (20:56 +0100)
committerJean Delvare <khali@linux-fr.org>
Sat, 13 Mar 2010 19:56:54 +0000 (20:56 +0100)
Move the last remaining driver from i2c/chips to misc. Good ridance!

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
drivers/i2c/Kconfig
drivers/i2c/Makefile
drivers/i2c/chips/Kconfig [deleted file]
drivers/i2c/chips/Makefile [deleted file]
drivers/misc/Kconfig
drivers/misc/Makefile
drivers/misc/tsl2550.c [moved from drivers/i2c/chips/tsl2550.c with 99% similarity]

index 02ce9cff5fcfb77175cf01c2de2a0ddffff9699f..7bcde5d45ee334c0d21c72cf00a441b25df48a7a 100644 (file)
@@ -73,7 +73,6 @@ config I2C_SMBUS
 
 source drivers/i2c/algos/Kconfig
 source drivers/i2c/busses/Kconfig
-source drivers/i2c/chips/Kconfig
 
 config I2C_DEBUG_CORE
        bool "I2C Core debugging messages"
index acd0250c16a0015b598178ff82c073a864034d0e..a7d9b4be9bb3069cd57d1a28198ee93bb0c1921d 100644 (file)
@@ -6,7 +6,7 @@ obj-$(CONFIG_I2C_BOARDINFO)     += i2c-boardinfo.o
 obj-$(CONFIG_I2C)              += i2c-core.o
 obj-$(CONFIG_I2C_SMBUS)                += i2c-smbus.o
 obj-$(CONFIG_I2C_CHARDEV)      += i2c-dev.o
-obj-y                          += busses/ chips/ algos/
+obj-y                          += algos/ busses/
 
 ifeq ($(CONFIG_I2C_DEBUG_CORE),y)
 EXTRA_CFLAGS += -DDEBUG
diff --git a/drivers/i2c/chips/Kconfig b/drivers/i2c/chips/Kconfig
deleted file mode 100644 (file)
index ae4539d..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-#
-# Miscellaneous I2C chip drivers configuration
-#
-# *** DEPRECATED! Do not add new entries! See Makefile ***
-#
-
-menu "Miscellaneous I2C Chip support"
-
-config SENSORS_TSL2550
-       tristate "Taos TSL2550 ambient light sensor"
-       depends on EXPERIMENTAL
-       help
-         If you say yes here you get support for the Taos TSL2550
-         ambient light sensor.
-
-         This driver can also be built as a module.  If so, the module
-         will be called tsl2550.
-
-endmenu
diff --git a/drivers/i2c/chips/Makefile b/drivers/i2c/chips/Makefile
deleted file mode 100644 (file)
index fe0af0f..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#
-# Makefile for miscellaneous I2C chip drivers.
-#
-# Do not add new drivers to this directory! It is DEPRECATED.
-#
-# Device drivers are better grouped according to the functionality they
-# implement rather than to the bus they are connected to. In particular:
-# * Hardware monitoring chip drivers go to drivers/hwmon
-# * RTC chip drivers go to drivers/rtc
-# * I/O expander drivers go to drivers/gpio
-#
-
-obj-$(CONFIG_SENSORS_TSL2550)  += tsl2550.o
-
-ifeq ($(CONFIG_I2C_DEBUG_CHIP),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
-
index d16af6a423fbc7d409c56f531531788733419eac..2191c8d896a0c69f00d85323f522c3c347a893e0 100644 (file)
@@ -268,6 +268,16 @@ config ISL29003
          This driver can also be built as a module.  If so, the module
          will be called isl29003.
 
+config SENSORS_TSL2550
+       tristate "Taos TSL2550 ambient light sensor"
+       depends on I2C && SYSFS
+       help
+         If you say yes here you get support for the Taos TSL2550
+         ambient light sensor.
+
+         This driver can also be built as a module.  If so, the module
+         will be called tsl2550.
+
 config EP93XX_PWM
        tristate "EP93xx PWM support"
        depends on ARCH_EP93XX
index 049ff2482f309999e2be3e7517c89ea727ab4e74..27c484355414cca3bcea2de7da9b0d4c7cc2150b 100644 (file)
@@ -21,6 +21,7 @@ obj-$(CONFIG_SGI_GRU)         += sgi-gru/
 obj-$(CONFIG_CS5535_MFGPT)     += cs5535-mfgpt.o
 obj-$(CONFIG_HP_ILO)           += hpilo.o
 obj-$(CONFIG_ISL29003)         += isl29003.o
+obj-$(CONFIG_SENSORS_TSL2550)  += tsl2550.o
 obj-$(CONFIG_EP93XX_PWM)       += ep93xx_pwm.o
 obj-$(CONFIG_DS1682)           += ds1682.o
 obj-$(CONFIG_TI_DAC7512)       += ti_dac7512.o
similarity index 99%
rename from drivers/i2c/chips/tsl2550.c
rename to drivers/misc/tsl2550.c
index a0702f36a72fd065651e78c80ab4076eff77d4b8..483ae5f7f68e20675ed829d0e481656200bb0ee1 100644 (file)
@@ -47,8 +47,8 @@ struct tsl2550_data {
        struct i2c_client *client;
        struct mutex update_lock;
 
-       unsigned int power_state : 1;
-       unsigned int operating_mode : 1;
+       unsigned int power_state:1;
+       unsigned int operating_mode:1;
 };
 
 /*