aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2014-11-03 19:51:26 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2014-12-16 00:46:12 -0500
commita4164863e150c4991d2ac965e3fc52f9d8df3d7e (patch)
treeeb6c186935b028730a2c440cb10121b6089dbdba /include/linux/mfd
parent80e1dd82be59d247e899d8ce29389f84ed828994 (diff)
Input: stmpe - enforce device tree only mode
The STMPE keypad controller is only used with device tree configured systems, so force the configuration to come from device tree only, and now actually get the rows and cols from the device tree too. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/stmpe.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/include/linux/mfd/stmpe.h b/include/linux/mfd/stmpe.h
index cc0deb72e46b..f742b6717d52 100644
--- a/include/linux/mfd/stmpe.h
+++ b/include/linux/mfd/stmpe.h
@@ -115,24 +115,6 @@ extern int stmpe_set_altfunc(struct stmpe *stmpe, u32 pins,
115extern int stmpe_enable(struct stmpe *stmpe, unsigned int blocks); 115extern int stmpe_enable(struct stmpe *stmpe, unsigned int blocks);
116extern int stmpe_disable(struct stmpe *stmpe, unsigned int blocks); 116extern int stmpe_disable(struct stmpe *stmpe, unsigned int blocks);
117 117
118struct matrix_keymap_data;
119
120/**
121 * struct stmpe_keypad_platform_data - STMPE keypad platform data
122 * @keymap_data: key map table and size
123 * @debounce_ms: debounce interval, in ms. Maximum is
124 * %STMPE_KEYPAD_MAX_DEBOUNCE.
125 * @scan_count: number of key scanning cycles to confirm key data.
126 * Maximum is %STMPE_KEYPAD_MAX_SCAN_COUNT.
127 * @no_autorepeat: disable key autorepeat
128 */
129struct stmpe_keypad_platform_data {
130 const struct matrix_keymap_data *keymap_data;
131 unsigned int debounce_ms;
132 unsigned int scan_count;
133 bool no_autorepeat;
134};
135
136#define STMPE_GPIO_NOREQ_811_TOUCH (0xf0) 118#define STMPE_GPIO_NOREQ_811_TOUCH (0xf0)
137 119
138/** 120/**
@@ -201,7 +183,6 @@ struct stmpe_ts_platform_data {
201 * @irq_gpio: gpio number over which irq will be requested (significant only if 183 * @irq_gpio: gpio number over which irq will be requested (significant only if
202 * irq_over_gpio is true) 184 * irq_over_gpio is true)
203 * @gpio: GPIO-specific platform data 185 * @gpio: GPIO-specific platform data
204 * @keypad: keypad-specific platform data
205 * @ts: touchscreen-specific platform data 186 * @ts: touchscreen-specific platform data
206 */ 187 */
207struct stmpe_platform_data { 188struct stmpe_platform_data {
@@ -214,7 +195,6 @@ struct stmpe_platform_data {
214 int autosleep_timeout; 195 int autosleep_timeout;
215 196
216 struct stmpe_gpio_platform_data *gpio; 197 struct stmpe_gpio_platform_data *gpio;
217 struct stmpe_keypad_platform_data *keypad;
218 struct stmpe_ts_platform_data *ts; 198 struct stmpe_ts_platform_data *ts;
219}; 199};
220 200