| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 2011-2016 Synaptics Incorporated |
|---|
| 3 | 4 | * 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. |
|---|
| 8 | 5 | */ |
|---|
| 9 | 6 | |
|---|
| 10 | 7 | #ifndef _RMI_H |
|---|
| .. | .. |
|---|
| 105 | 102 | }; |
|---|
| 106 | 103 | |
|---|
| 107 | 104 | /** |
|---|
| 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. |
|---|
| 109 | 107 | * @buttonpad - the touchpad is a buttonpad, so enable only the first actual |
|---|
| 110 | 108 | * 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 |
|---|
| 112 | 110 | * 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. |
|---|
| 114 | 112 | * This is a special case which is due to misconfigured firmware. |
|---|
| 115 | 113 | */ |
|---|
| 116 | | -struct rmi_f30_data { |
|---|
| 114 | +struct rmi_gpio_data { |
|---|
| 117 | 115 | bool buttonpad; |
|---|
| 118 | 116 | bool trackstick_buttons; |
|---|
| 119 | 117 | bool disable; |
|---|
| .. | .. |
|---|
| 209 | 207 | * |
|---|
| 210 | 208 | * @reset_delay_ms - after issuing a reset command to the touch sensor, the |
|---|
| 211 | 209 | * 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. |
|---|
| 213 | 211 | * @irq: irq associated with the attn gpio line, or negative |
|---|
| 214 | 212 | */ |
|---|
| 215 | 213 | struct rmi_device_platform_data { |
|---|
| .. | .. |
|---|
| 221 | 219 | /* function handler pdata */ |
|---|
| 222 | 220 | struct rmi_2d_sensor_platform_data sensor_pdata; |
|---|
| 223 | 221 | struct rmi_f01_power_management power_management; |
|---|
| 224 | | - struct rmi_f30_data f30_data; |
|---|
| 222 | + struct rmi_gpio_data gpio_data; |
|---|
| 225 | 223 | }; |
|---|
| 226 | 224 | |
|---|
| 227 | 225 | /** |
|---|