summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver <oliverburns.kernel@gmail.com>2026-06-15 00:08:47 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2026-06-26 22:25:02 -0700
commitc8f174900926d3b58cd048ac33b4cbb3de419bfe (patch)
tree8e8affcbe691f6f379ea3174452286ff7b2a09c4
parent8fc62e1d7429e39ac0420dd457021b5fe809e90d (diff)
downloadlinux-next-c8f174900926d3b58cd048ac33b4cbb3de419bfe.tar.gz
linux-next-c8f174900926d3b58cd048ac33b4cbb3de419bfe.zip
Input: sur40 - fix MAX_CONTACTS value based on PixelSense specification
The Samsung SUR40 with Microsoft PixelSense is offically specified to support 52 simultaneuous touch contacts, not 64. The value of 64 was an unverified guess as noted by the FIXME comment. Update MAX_CONTACTS to match the documented hardware specification and remove the FIXME. Signed-off-by: Oliver <oliverburns.kernel@gmail.com> Link: https://patch.msgid.link/20260614230847.4938-1-oliverburns.kernel@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--drivers/input/touchscreen/sur40.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/sur40.c b/drivers/input/touchscreen/sur40.c
index fe63d53d56db..77ec2c94b91f 100644
--- a/drivers/input/touchscreen/sur40.c
+++ b/drivers/input/touchscreen/sur40.c
@@ -128,8 +128,8 @@ struct sur40_image_header {
/* polling interval (ms) */
#define POLL_INTERVAL 1
-/* maximum number of contacts FIXME: this is a guess? */
-#define MAX_CONTACTS 64
+/* maximum number of contacts */
+#define MAX_CONTACTS 52
/* control commands */
#define SUR40_GET_VERSION 0xb0 /* 12 bytes string */