Commit d6aa1311 authored by Jarkko Nikula's avatar Jarkko Nikula Committed by Tony Lindgren

SPI: Separate TSC2301 keypad and touchscreen modules under input subsystem

Patch moves TSC2301 keypad and touchscreen modules and Kconfig options
into keyboard and touchscreen directories under drivers/input.
Signed-off-by: default avatarJarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 68a575f9
...@@ -239,4 +239,10 @@ config KEYBOARD_GPIO ...@@ -239,4 +239,10 @@ config KEYBOARD_GPIO
To compile this driver as a module, choose M here: the To compile this driver as a module, choose M here: the
module will be called gpio-keys. 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 endif
...@@ -20,4 +20,5 @@ obj-$(CONFIG_KEYBOARD_OMAP) += omap-keypad.o ...@@ -20,4 +20,5 @@ obj-$(CONFIG_KEYBOARD_OMAP) += omap-keypad.o
obj-$(CONFIG_OMAP_PS2) += innovator_ps2.o obj-$(CONFIG_OMAP_PS2) += innovator_ps2.o
obj-$(CONFIG_KEYBOARD_AAED2000) += aaed2000_kbd.o obj-$(CONFIG_KEYBOARD_AAED2000) += aaed2000_kbd.o
obj-$(CONFIG_KEYBOARD_GPIO) += gpio_keys.o obj-$(CONFIG_KEYBOARD_GPIO) += gpio_keys.o
obj-$(CONFIG_KEYBOARD_TSC2301) += tsc2301_kp.o
...@@ -159,4 +159,10 @@ config TOUCHSCREEN_UCB1400 ...@@ -159,4 +159,10 @@ config TOUCHSCREEN_UCB1400
To compile this driver as a module, choose M here: the To compile this driver as a module, choose M here: the
module will be called ucb1400_ts. 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 endif
...@@ -18,3 +18,4 @@ obj-$(CONFIG_TOUCHSCREEN_TOUCHWIN) += touchwin.o ...@@ -18,3 +18,4 @@ obj-$(CONFIG_TOUCHSCREEN_TOUCHWIN) += touchwin.o
obj-$(CONFIG_TOUCHSCREEN_UCB1400) += ucb1400_ts.o obj-$(CONFIG_TOUCHSCREEN_UCB1400) += ucb1400_ts.o
obj-$(CONFIG_TOUCHSCREEN_TSC2102) += tsc2102_ts.o obj-$(CONFIG_TOUCHSCREEN_TSC2102) += tsc2102_ts.o
obj-$(CONFIG_TOUCHSCREEN_OMAP) += omap/ obj-$(CONFIG_TOUCHSCREEN_OMAP) += omap/
obj-$(CONFIG_TOUCHSCREEN_TSC2301) += tsc2301_ts.o
...@@ -196,20 +196,6 @@ config SPI_TSC2301 ...@@ -196,20 +196,6 @@ config SPI_TSC2301
To compile this driver as a module, choose M here: the To compile this driver as a module, choose M here: the
module will be called tsc2301. 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 config SPI_TSC2301_AUDIO
boolean "TSC2301 audio support" boolean "TSC2301 audio support"
depends on SPI_TSC2301 && SND depends on SPI_TSC2301 && SND
......
...@@ -31,8 +31,6 @@ obj-$(CONFIG_TSC2102) += tsc2102.o ...@@ -31,8 +31,6 @@ obj-$(CONFIG_TSC2102) += tsc2102.o
obj-$(CONFIG_SPI_AT25) += at25.o obj-$(CONFIG_SPI_AT25) += at25.o
obj-$(CONFIG_SPI_TSC2301) += tsc2301.o obj-$(CONFIG_SPI_TSC2301) += tsc2301.o
tsc2301-objs := tsc2301-core.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 tsc2301-$(CONFIG_SPI_TSC2301_AUDIO) += tsc2301-mixer.o
# ... add above this line ... # ... add above this line ...
......
...@@ -174,15 +174,15 @@ static inline int tsc2301_##module##_suspend(struct tsc2301 *tsc) \ ...@@ -174,15 +174,15 @@ static inline int tsc2301_##module##_suspend(struct tsc2301 *tsc) \
} \ } \
static inline void tsc2301_##module##_resume(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) TSC2301_DECL_MOD(kp)
void tsc2301_kp_restart(struct tsc2301 *tsc); void tsc2301_kp_restart(struct tsc2301 *tsc);
#else #else
TSC2301_DECL_EMPTY_MOD(kp) TSC2301_DECL_EMPTY_MOD(kp)
void tsc2301_kp_restart(struct tsc2301 *tsc) {} static inline void tsc2301_kp_restart(struct tsc2301 *tsc) {}
#endif #endif
#ifdef CONFIG_SPI_TSC2301_TOUCHSCREEN #ifdef CONFIG_TOUCHSCREEN_TSC2301
TSC2301_DECL_MOD(ts) TSC2301_DECL_MOD(ts)
#else #else
TSC2301_DECL_EMPTY_MOD(ts) TSC2301_DECL_EMPTY_MOD(ts)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment