aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-06-09 21:46:02 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-09 21:46:02 -0400
commitf4f9b8fc73f9aa93744f0e91e18f367d7766f523 (patch)
tree90d02c6722b0ffd8252ac438370600aaf8d814e7 /drivers/platform
parent9894e6d9c020b754dd962960e9f7eac18282f69f (diff)
parenta292241cccb7e20e8b997a9a44177e7c98141859 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
Pull input updates from Dmitry Torokhov: "A big update to the Atmel touchscreen driver, devm support for polled input devices, several drivers have been converted to using managed resources, and assorted driver fixes" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (87 commits) Input: synaptics - fix resolution for manually provided min/max Input: atmel_mxt_ts - fix invalid return from mxt_get_bootloader_version Input: max8997_haptic - add error handling for regulator and pwm Input: elantech - don't set bit 1 of reg_10 when the no_hw_res quirk is set Input: elantech - deal with clickpads reporting right button events Input: edt-ft5x06 - fix an i2c write for M09 support Input: omap-keypad - remove platform data support ARM: OMAP2+: remove unused omap4-keypad file and code Input: ab8500-ponkey - switch to using managed resources Input: max8925_onkey - switch to using managed resources Input: 88pm860x-ts - switch to using managed resources Input: 88pm860x_onkey - switch to using managed resources Input: intel-mid-touch - switch to using managed resources Input: wacom - process outbound for newer Cintiqs Input: wacom - set stylus_in_proximity when pen is in range DTS: ARM: OMAP3-N900: Add tsc2005 support Input: tsc2005 - add DT support Input: add common DT binding for touchscreens Input: jornada680_kbd - switch top using managed resources Input: adp5520-keys - switch to using managed resources ...
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/chrome/chromeos_laptop.c33
1 files changed, 11 insertions, 22 deletions
diff --git a/drivers/platform/chrome/chromeos_laptop.c b/drivers/platform/chrome/chromeos_laptop.c
index 7f3aad0e115c..7f1a2e2711bd 100644
--- a/drivers/platform/chrome/chromeos_laptop.c
+++ b/drivers/platform/chrome/chromeos_laptop.c
@@ -84,21 +84,19 @@ static struct i2c_board_info tsl2563_als_device = {
84 I2C_BOARD_INFO("tsl2563", TAOS_ALS_I2C_ADDR), 84 I2C_BOARD_INFO("tsl2563", TAOS_ALS_I2C_ADDR),
85}; 85};
86 86
87static int mxt_t19_keys[] = {
88 KEY_RESERVED,
89 KEY_RESERVED,
90 KEY_RESERVED,
91 KEY_RESERVED,
92 KEY_RESERVED,
93 BTN_LEFT
94};
95
87static struct mxt_platform_data atmel_224s_tp_platform_data = { 96static struct mxt_platform_data atmel_224s_tp_platform_data = {
88 .x_line = 18,
89 .y_line = 12,
90 .x_size = 102*20,
91 .y_size = 68*20,
92 .blen = 0x80, /* Gain setting is in upper 4 bits */
93 .threshold = 0x32,
94 .voltage = 0, /* 3.3V */
95 .orient = MXT_VERTICAL_FLIP,
96 .irqflags = IRQF_TRIGGER_FALLING, 97 .irqflags = IRQF_TRIGGER_FALLING,
97 .is_tp = true, 98 .t19_num_keys = ARRAY_SIZE(mxt_t19_keys),
98 .key_map = { KEY_RESERVED, 99 .t19_keymap = mxt_t19_keys,
99 KEY_RESERVED,
100 KEY_RESERVED,
101 BTN_LEFT },
102 .config = NULL, 100 .config = NULL,
103 .config_length = 0, 101 .config_length = 0,
104}; 102};
@@ -110,16 +108,7 @@ static struct i2c_board_info atmel_224s_tp_device = {
110}; 108};
111 109
112static struct mxt_platform_data atmel_1664s_platform_data = { 110static struct mxt_platform_data atmel_1664s_platform_data = {
113 .x_line = 32,
114 .y_line = 50,
115 .x_size = 1700,
116 .y_size = 2560,
117 .blen = 0x89, /* Gain setting is in upper 4 bits */
118 .threshold = 0x28,
119 .voltage = 0, /* 3.3V */
120 .orient = MXT_ROTATED_90_COUNTER,
121 .irqflags = IRQF_TRIGGER_FALLING, 111 .irqflags = IRQF_TRIGGER_FALLING,
122 .is_tp = false,
123 .config = NULL, 112 .config = NULL,
124 .config_length = 0, 113 .config_length = 0,
125}; 114};