aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/i2c
diff options
context:
space:
mode:
authorIiro Valkonen <iiro.valkonen@atmel.com>2011-02-15 16:36:52 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-02-21 04:02:33 -0500
commit71749f5c66e797a39600dae9de58aab3858dc488 (patch)
treedfb7593588c36288e3bbbae68a5ca22ac62c255b /include/linux/i2c
parent46ee2a05a466ca7e34d65fe3feba195d62109362 (diff)
Input: atmel_mxt_ts - allow board code to suppliy controller config
As there is no common configuration settings that would work in every situation, remove the fixed config data from driver code and add config data to platform data. Signed-off-by: Iiro Valkonen <iiro.valkonen@atmel.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/i2c')
-rw-r--r--include/linux/i2c/atmel_mxt_ts.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/i2c/atmel_mxt_ts.h b/include/linux/i2c/atmel_mxt_ts.h
index 671967cf4d1a..b8297685f489 100644
--- a/include/linux/i2c/atmel_mxt_ts.h
+++ b/include/linux/i2c/atmel_mxt_ts.h
@@ -13,6 +13,8 @@
13#ifndef __LINUX_ATMEL_MXT_TS_H 13#ifndef __LINUX_ATMEL_MXT_TS_H
14#define __LINUX_ATMEL_MXT_TS_H 14#define __LINUX_ATMEL_MXT_TS_H
15 15
16#include <linux/types.h>
17
16/* Orient */ 18/* Orient */
17#define MXT_NORMAL 0x0 19#define MXT_NORMAL 0x0
18#define MXT_DIAGONAL 0x1 20#define MXT_DIAGONAL 0x1
@@ -25,6 +27,9 @@
25 27
26/* The platform data for the Atmel maXTouch touchscreen driver */ 28/* The platform data for the Atmel maXTouch touchscreen driver */
27struct mxt_platform_data { 29struct mxt_platform_data {
30 const u8 *config;
31 size_t config_length;
32
28 unsigned int x_line; 33 unsigned int x_line;
29 unsigned int y_line; 34 unsigned int y_line;
30 unsigned int x_size; 35 unsigned int x_size;