mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-07-06 00:13:38 -04:00
Input: synaptics-rmi4 - rename f30_data to gpio_data
f30_data in rmi_device_platform_data could be also referenced by RMI function 3A, so rename it and the structure name to avoid confusion. Signed-off-by: Vincent Huang <vincent.huang@tw.synaptics.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Tested-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Andrew Duggan <aduggan@synaptics.com> Link: https://lore.kernel.org/r/20200930094147.635556-2-vincent.huang@tw.synaptics.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
26822652c8
commit
261bfb3328
4 changed files with 15 additions and 14 deletions
|
@ -102,15 +102,16 @@ struct rmi_2d_sensor_platform_data {
|
|||
};
|
||||
|
||||
/**
|
||||
* struct rmi_f30_data - overrides defaults for a single F30 GPIOs/LED chip.
|
||||
* struct rmi_gpio_data - overrides defaults for a single F30/F3A GPIOs/LED
|
||||
* chip.
|
||||
* @buttonpad - the touchpad is a buttonpad, so enable only the first actual
|
||||
* button that is found.
|
||||
* @trackstick_buttons - Set when the function 30 is handling the physical
|
||||
* @trackstick_buttons - Set when the function 30 or 3a is handling the physical
|
||||
* buttons of the trackstick (as a PS/2 passthrough device).
|
||||
* @disable - the touchpad incorrectly reports F30 and it should be ignored.
|
||||
* @disable - the touchpad incorrectly reports F30/F3A and it should be ignored.
|
||||
* This is a special case which is due to misconfigured firmware.
|
||||
*/
|
||||
struct rmi_f30_data {
|
||||
struct rmi_gpio_data {
|
||||
bool buttonpad;
|
||||
bool trackstick_buttons;
|
||||
bool disable;
|
||||
|
@ -218,7 +219,7 @@ struct rmi_device_platform_data {
|
|||
/* function handler pdata */
|
||||
struct rmi_2d_sensor_platform_data sensor_pdata;
|
||||
struct rmi_f01_power_management power_management;
|
||||
struct rmi_f30_data f30_data;
|
||||
struct rmi_gpio_data gpio_data;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue