diff options
author | Andrew Duggan <aduggan@synaptics.com> | 2016-11-08 16:48:48 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-11-08 17:12:07 -0800 |
commit | 2775e523246e11c5ce90b69226c5e67aa43e64a5 (patch) | |
tree | 858d445c2f8450072686a57a890fe544ed66e342 /drivers/input/rmi4/rmi_2d_sensor.h | |
parent | 6d0dbeae71f074c67b081eae45cd58fa39dfda2e (diff) | |
download | linux-2775e523246e11c5ce90b69226c5e67aa43e64a5.tar.bz2 |
Input: synaptics-rmi4 - add parameters for dribble packets and palm detect gesture
The rmi_f11 driver currently disables dribble packets and the palm detect
gesture for all devices. This patch creates a parameter in the 2d sensor
platform data for controlling this functionality on a per device basis.
For more information on dribble packets:
Commit 05ba999fcabb ("HID: rmi: disable dribble packets on Synaptics
touchpads")
For more information on the palm detect gesture:
Commit f097deef59a6 ("HID: rmi: disable palm detect gesture when present")
Signed-off-by: Andrew Duggan <aduggan@synaptics.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/rmi4/rmi_2d_sensor.h')
-rw-r--r-- | drivers/input/rmi4/rmi_2d_sensor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/input/rmi4/rmi_2d_sensor.h b/drivers/input/rmi4/rmi_2d_sensor.h index 77fcdfef003c..c871bef4dac0 100644 --- a/drivers/input/rmi4/rmi_2d_sensor.h +++ b/drivers/input/rmi4/rmi_2d_sensor.h @@ -67,6 +67,8 @@ struct rmi_2d_sensor { u8 report_rel; u8 x_mm; u8 y_mm; + enum rmi_reg_state dribble; + enum rmi_reg_state palm_detect; }; int rmi_2d_sensor_of_probe(struct device *dev, |