summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/cyttsp_core.h
diff options
context:
space:
mode:
authorOreste Salerno <oreste.salerno@tomtom.com>2016-01-27 13:55:43 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-01-27 14:32:48 -0800
commit707b61bba8b16adb6a2cbc72b71a75e09cb0f81a (patch)
treebf565a026a105839e65f0403917733eb3fc4bd6e /drivers/input/touchscreen/cyttsp_core.h
parent69a124029b4bfcfc66b477ad2c3298f06c905ee6 (diff)
downloadlinux-stable-707b61bba8b16adb6a2cbc72b71a75e09cb0f81a.tar.gz
linux-stable-707b61bba8b16adb6a2cbc72b71a75e09cb0f81a.tar.bz2
linux-stable-707b61bba8b16adb6a2cbc72b71a75e09cb0f81a.zip
Input: cyttsp - switch to using device properties
Drop support for platform data passed via a C-structure and switch to device properties instead, which should make the driver compatible with all platforms: OF, ACPI and static boards. Static boards should use property sets to communicate device parameters to the driver. Signed-off-by: Oreste Salerno <oreste.salerno@tomtom.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/cyttsp_core.h')
-rw-r--r--drivers/input/touchscreen/cyttsp_core.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/cyttsp_core.h b/drivers/input/touchscreen/cyttsp_core.h
index c5e7afce6de8..7835e2bacf5a 100644
--- a/drivers/input/touchscreen/cyttsp_core.h
+++ b/drivers/input/touchscreen/cyttsp_core.h
@@ -129,7 +129,6 @@ struct cyttsp {
int irq;
struct input_dev *input;
char phys[32];
- const struct cyttsp_platform_data *pdata;
const struct cyttsp_bus_ops *bus_ops;
struct cyttsp_bootloader_data bl_data;
struct cyttsp_sysinfo_data sysinfo_data;
@@ -138,6 +137,14 @@ struct cyttsp {
enum cyttsp_state state;
bool suspended;
+ struct gpio_desc *reset_gpio;
+ bool use_hndshk;
+ u8 act_dist;
+ u8 act_intrvl;
+ u8 tch_tmout;
+ u8 lp_intrvl;
+ u8 *bl_keys;
+
u8 xfer_buf[] ____cacheline_aligned;
};