summaryrefslogtreecommitdiffstats
path: root/include/linux/input
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2012-09-28 10:29:07 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-11-27 23:05:11 -0800
commit31fbcda71489d8cbe2b82819eaab4818524e3a49 (patch)
tree0f19938312a79b229877e31dc728fba75c73a688 /include/linux/input
parent8c587f7709f7f6377842968562bcf51ee6f47f09 (diff)
downloadlinux-31fbcda71489d8cbe2b82819eaab4818524e3a49.tar.gz
linux-31fbcda71489d8cbe2b82819eaab4818524e3a49.tar.bz2
linux-31fbcda71489d8cbe2b82819eaab4818524e3a49.zip
Input: bu21013_ts - move GPIO init and exit functions into the driver
These GPIO init and exit functions have no place in platform data, they should be part of the driver instead, Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/linux/input')
-rw-r--r--include/linux/input/bu21013.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/include/linux/input/bu21013.h b/include/linux/input/bu21013.h
index 05e03284b92a..6230d76bde5d 100644
--- a/include/linux/input/bu21013.h
+++ b/include/linux/input/bu21013.h
@@ -9,13 +9,10 @@
/**
* struct bu21013_platform_device - Handle the platform data
- * @cs_en: pointer to the cs enable function
- * @cs_dis: pointer to the cs disable function
- * @irq_read_val: pointer to read the pen irq value function
* @touch_x_max: touch x max
* @touch_y_max: touch y max
* @cs_pin: chip select pin
- * @irq: irq pin
+ * @touch_pin: touch gpio pin
* @ext_clk: external clock flag
* @x_flip: x flip flag
* @y_flip: y flip flag
@@ -24,13 +21,10 @@
* This is used to handle the platform data
*/
struct bu21013_platform_device {
- int (*cs_en)(int reset_pin);
- int (*cs_dis)(int reset_pin);
- int (*irq_read_val)(void);
int touch_x_max;
int touch_y_max;
unsigned int cs_pin;
- unsigned int irq;
+ unsigned int touch_pin;
bool ext_clk;
bool x_flip;
bool y_flip;