hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/include/linux/rmi.h
....@@ -1,10 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (c) 2011-2016 Synaptics Incorporated
34 * Copyright (c) 2011 Unixphere
4
- *
5
- * This program is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU General Public License version 2 as published by
7
- * the Free Software Foundation.
85 */
96
107 #ifndef _RMI_H
....@@ -105,15 +102,16 @@
105102 };
106103
107104 /**
108
- * struct rmi_f30_data - overrides defaults for a single F30 GPIOs/LED chip.
105
+ * struct rmi_gpio_data - overrides defaults for a single F30/F3A GPIOs/LED
106
+ * chip.
109107 * @buttonpad - the touchpad is a buttonpad, so enable only the first actual
110108 * button that is found.
111
- * @trackstick_buttons - Set when the function 30 is handling the physical
109
+ * @trackstick_buttons - Set when the function 30 or 3a is handling the physical
112110 * buttons of the trackstick (as a PS/2 passthrough device).
113
- * @disable - the touchpad incorrectly reports F30 and it should be ignored.
111
+ * @disable - the touchpad incorrectly reports F30/F3A and it should be ignored.
114112 * This is a special case which is due to misconfigured firmware.
115113 */
116
-struct rmi_f30_data {
114
+struct rmi_gpio_data {
117115 bool buttonpad;
118116 bool trackstick_buttons;
119117 bool disable;
....@@ -209,7 +207,7 @@
209207 *
210208 * @reset_delay_ms - after issuing a reset command to the touch sensor, the
211209 * driver waits a few milliseconds to give the firmware a chance to
212
- * to re-initialize. You can override the default wait period here.
210
+ * re-initialize. You can override the default wait period here.
213211 * @irq: irq associated with the attn gpio line, or negative
214212 */
215213 struct rmi_device_platform_data {
....@@ -221,7 +219,7 @@
221219 /* function handler pdata */
222220 struct rmi_2d_sensor_platform_data sensor_pdata;
223221 struct rmi_f01_power_management power_management;
224
- struct rmi_f30_data f30_data;
222
+ struct rmi_gpio_data gpio_data;
225223 };
226224
227225 /**