summaryrefslogtreecommitdiff
path: root/include/linux/i2c
diff options
context:
space:
mode:
authorIiro Valkonen <iiro.valkonen@atmel.com>2011-02-16 00:36:52 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-02-21 12:02:33 +0300
commit71749f5c66e797a39600dae9de58aab3858dc488 (patch)
treedfb7593588c36288e3bbbae68a5ca22ac62c255b /include/linux/i2c
parent46ee2a05a466ca7e34d65fe3feba195d62109362 (diff)
downloadlinux-71749f5c66e797a39600dae9de58aab3858dc488.tar.xz
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 @@
#ifndef __LINUX_ATMEL_MXT_TS_H
#define __LINUX_ATMEL_MXT_TS_H
+#include <linux/types.h>
+
/* Orient */
#define MXT_NORMAL 0x0
#define MXT_DIAGONAL 0x1
@@ -25,6 +27,9 @@
/* The platform data for the Atmel maXTouch touchscreen driver */
struct mxt_platform_data {
+ const u8 *config;
+ size_t config_length;
+
unsigned int x_line;
unsigned int y_line;
unsigned int x_size;