]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
SPI: Separate TSC2301 keypad and touchscreen modules under input subsystem
authorJarkko Nikula <jarkko.nikula@nokia.com>
Thu, 22 Mar 2007 09:14:52 +0000 (11:14 +0200)
committerTony Lindgren <tony@atomide.com>
Fri, 30 Mar 2007 19:10:21 +0000 (15:10 -0400)
Patch moves TSC2301 keypad and touchscreen modules and Kconfig options
into keyboard and touchscreen directories under drivers/input.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/input/keyboard/Kconfig
drivers/input/keyboard/Makefile
drivers/input/keyboard/tsc2301_kp.c [moved from drivers/spi/tsc2301-kp.c with 100% similarity]
drivers/input/touchscreen/Kconfig
drivers/input/touchscreen/Makefile
drivers/input/touchscreen/tsc2301_ts.c [moved from drivers/spi/tsc2301-ts.c with 100% similarity]
drivers/spi/Kconfig
drivers/spi/Makefile
include/linux/spi/tsc2301.h

index 0088e1c5adcb77ac87057641b9d8a13d097dac7e..6fefc4dfa92af2ca9b4d2bb931267a1bfcdd8466 100644 (file)
@@ -239,4 +239,10 @@ config KEYBOARD_GPIO
          To compile this driver as a module, choose M here: the
          module will be called gpio-keys.
 
+config KEYBOARD_TSC2301
+       tristate "TSC2301 keypad support"
+       depends on SPI_TSC2301
+       help
+         Say Y here for if you are using the keypad features of TSC2301.
+
 endif
index 17e5ce0bd6de0c856009c0898a9484cc070232ae..f80aebe1c9df1995aa731098f224fb666cd369be 100644 (file)
@@ -20,4 +20,5 @@ obj-$(CONFIG_KEYBOARD_OMAP)             += omap-keypad.o
 obj-$(CONFIG_OMAP_PS2)                 += innovator_ps2.o
 obj-$(CONFIG_KEYBOARD_AAED2000)         += aaed2000_kbd.o
 obj-$(CONFIG_KEYBOARD_GPIO)            += gpio_keys.o
+obj-$(CONFIG_KEYBOARD_TSC2301)         += tsc2301_kp.o
 
index 6b46c9bf1d2045c7bf79a1c2c977bdf92a6db27e..caac4d425b7c5630fb8affad0d1745b17d5b8273 100644 (file)
@@ -159,4 +159,10 @@ config TOUCHSCREEN_UCB1400
          To compile this driver as a module, choose M here: the
          module will be called ucb1400_ts.
 
+config TOUCHSCREEN_TSC2301
+       tristate "TSC2301 touchscreen support"
+       depends on SPI_TSC2301
+       help
+         Say Y here for if you are using the touchscreen features of TSC2301.
+
 endif
index 061bc14aeda41dcce8c9f9311adb17055ab1dba3..ee27e0b1e2d58ad53e59e4b62dae09614f0955b5 100644 (file)
@@ -18,3 +18,4 @@ obj-$(CONFIG_TOUCHSCREEN_TOUCHWIN)    += touchwin.o
 obj-$(CONFIG_TOUCHSCREEN_UCB1400)      += ucb1400_ts.o
 obj-$(CONFIG_TOUCHSCREEN_TSC2102)      += tsc2102_ts.o
 obj-$(CONFIG_TOUCHSCREEN_OMAP) += omap/
+obj-$(CONFIG_TOUCHSCREEN_TSC2301)      += tsc2301_ts.o
index 47a9c6f735fb0fd9edb78a3d79076d083c51f6a3..5b913c1706894e014a93118b9a72dd7c3d315b14 100644 (file)
@@ -196,20 +196,6 @@ config SPI_TSC2301
          To compile this driver as a module, choose M here: the
          module will be called tsc2301.
 
-config SPI_TSC2301_KEYPAD
-       boolean "TSC2301 keypad support"
-       depends on SPI_TSC2301
-       select INPUT_KEYBOARD
-       help
-         Say Y here for if you are using the keypad features of TSC2301.
-
-config SPI_TSC2301_TOUCHSCREEN
-       boolean "TSC2301 touchscreen support"
-       depends on SPI_TSC2301
-       select INPUT_TOUCHSCREEN
-       help
-         Say Y here for if you are using the touchscreen features of TSC2301.
-
 config SPI_TSC2301_AUDIO
        boolean "TSC2301 audio support"
        depends on SPI_TSC2301 && SND
index aa5e0220fa206c43e367544e3cf7ea2d7df8bf8c..5bfdfeef8465ca2ac8ec207448e3bd4c4dcdf6b0 100644 (file)
@@ -31,8 +31,6 @@ obj-$(CONFIG_TSC2102)                 += tsc2102.o
 obj-$(CONFIG_SPI_AT25)         += at25.o
 obj-$(CONFIG_SPI_TSC2301)              += tsc2301.o
 tsc2301-objs                                   := tsc2301-core.o
-tsc2301-$(CONFIG_SPI_TSC2301_TOUCHSCREEN)      += tsc2301-ts.o
-tsc2301-$(CONFIG_SPI_TSC2301_KEYPAD)           += tsc2301-kp.o
 tsc2301-$(CONFIG_SPI_TSC2301_AUDIO)            += tsc2301-mixer.o
 #      ... add above this line ...
 
index adf460e39bef383dee32eeebc0acb3006e4660a1..059cc5811f13f7b580eb6b1e71e34c212ecf53c4 100644 (file)
@@ -174,15 +174,15 @@ static inline int  tsc2301_##module##_suspend(struct tsc2301 *tsc)        \
 }                                                                      \
 static inline void tsc2301_##module##_resume(struct tsc2301 *tsc) {}
 
-#ifdef CONFIG_SPI_TSC2301_KEYPAD
+#ifdef CONFIG_KEYBOARD_TSC2301
 TSC2301_DECL_MOD(kp)
 void tsc2301_kp_restart(struct tsc2301 *tsc);
 #else
 TSC2301_DECL_EMPTY_MOD(kp)
-void tsc2301_kp_restart(struct tsc2301 *tsc) {}
+static inline void tsc2301_kp_restart(struct tsc2301 *tsc) {}
 #endif
 
-#ifdef CONFIG_SPI_TSC2301_TOUCHSCREEN
+#ifdef CONFIG_TOUCHSCREEN_TSC2301
 TSC2301_DECL_MOD(ts)
 #else
 TSC2301_DECL_EMPTY_MOD(ts)