summaryrefslogtreecommitdiffstats
path: root/drivers/input/rmi4/Kconfig
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2016-11-23 02:57:02 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-11-23 02:59:25 +0100
commitc762cc68b6a12eedebefc156ea4838e54804e2eb (patch)
treeb5e6e92723464430f094fb6951b23bbdb10a217f /drivers/input/rmi4/Kconfig
parentInput: synaptics-rmi4 - add support for F55 sensor tuning (diff)
downloadlinux-c762cc68b6a12eedebefc156ea4838e54804e2eb.tar.xz
linux-c762cc68b6a12eedebefc156ea4838e54804e2eb.zip
Input: synaptics-rmi4 - propagate correct number of rx and tx electrodes to F54
F54 diagnostics report functions provide data based on the number of enabled rx and tx electrodes, which is not identical to the number of electrodes reported with F54:Query0 and F54:Query1. Those values report the number of supported electrodes, not the number of enabled electrodes. The number of enabled electrodes can be determined by analyzing F55:Ctrl1 (sensor receiver assignment) and F55:Ctrl2 (sensor transmitter assignment). Propagate the number of enabled electrodes from F55 to F54 to avoid corrupted output if not all electrodes are enabled. Fixes: 3a762dbd5347 ("[media] Input: synaptics-rmi4 - add support for F54 ...") Signed-off-by: Guenter Roeck <linux@roeck-us.net> Tested-by: Nick Dyer <nick@shmanahar.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/rmi4/Kconfig')
-rw-r--r--drivers/input/rmi4/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/rmi4/Kconfig b/drivers/input/rmi4/Kconfig
index f4460f3ebac5..a9c36a5fe708 100644
--- a/drivers/input/rmi4/Kconfig
+++ b/drivers/input/rmi4/Kconfig
@@ -90,6 +90,7 @@ config RMI4_F54
depends on RMI4_CORE
depends on VIDEO_V4L2=y || (RMI4_CORE=m && VIDEO_V4L2=m)
select VIDEOBUF2_VMALLOC
+ select RMI4_F55
help
Say Y here if you want to add support for RMI4 function 54