hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/input/mouse/synaptics.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Synaptics TouchPad PS/2 mouse driver
34 *
....@@ -15,10 +16,6 @@
1516 * Copyright (c) 1997 C. Scott Ananian <cananian@alumni.priceton.edu>
1617 * Copyright (c) 1998-2000 Bruce Kalk <kall@compass.com>
1718 * code for the special synaptics commands (from the tpconfig-source)
18
- *
19
- * This program is free software; you can redistribute it and/or modify it
20
- * under the terms of the GNU General Public License version 2 as published by
21
- * the Free Software Foundation.
2219 *
2320 * Trademarks are the property of their respective owners.
2421 */
....@@ -182,12 +179,14 @@
182179 "LEN0093", /* T480 */
183180 "LEN0096", /* X280 */
184181 "LEN0097", /* X280 -> ALPS trackpoint */
185
- "LEN0099", /* X1 Extreme 1st */
182
+ "LEN0099", /* X1 Extreme Gen 1 / P1 Gen 1 */
186183 "LEN009b", /* T580 */
184
+ "LEN0402", /* X1 Extreme Gen 2 / P1 Gen 2 */
187185 "LEN200f", /* T450s */
188186 "LEN2044", /* L470 */
189187 "LEN2054", /* E480 */
190188 "LEN2055", /* E580 */
189
+ "LEN2068", /* T14 Gen 1 */
191190 "SYN3052", /* HP EliteBook 840 G4 */
192191 "SYN3221", /* HP 15-ay000 */
193192 "SYN323d", /* HP Spectre X360 13-w013dx */
....@@ -202,7 +201,7 @@
202201 };
203202
204203 /*
205
- * Send a command to the synpatics touchpad by special commands
204
+ * Send a command to the synaptics touchpad by special commands
206205 */
207206 static int synaptics_send_cmd(struct psmouse *psmouse, u8 cmd, u8 *param)
208207 {
....@@ -716,7 +715,7 @@
716715
717716 serio->id.type = SERIO_PS_PSTHRU;
718717 strlcpy(serio->name, "Synaptics pass-through", sizeof(serio->name));
719
- strlcpy(serio->phys, "synaptics-pt/serio0", sizeof(serio->name));
718
+ strlcpy(serio->phys, "synaptics-pt/serio0", sizeof(serio->phys));
720719 serio->write = synaptics_pt_write;
721720 serio->start = synaptics_pt_start;
722721 serio->stop = synaptics_pt_stop;
....@@ -1755,7 +1754,7 @@
17551754 .kernel_tracking = false,
17561755 .topbuttonpad = topbuttonpad,
17571756 },
1758
- .f30_data = {
1757
+ .gpio_data = {
17591758 .buttonpad = SYN_CAP_CLICKPAD(info->ext_cap_0c),
17601759 .trackstick_buttons =
17611760 !!SYN_CAP_EXT_BUTTONS_STICK(info->ext_cap_10),