Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Input: tsc40 - switch to use scnprintf() to suppress truncation warning

Switch the driver to use scnprintf() to avoid warnings about potential
truncation of "phys" field which we can tolerate.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20260113082941.90006-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Andy Shevchenko and committed by
Dmitry Torokhov
b58a2c1a 9f18271c

+1 -1
+1 -1
drivers/input/touchscreen/tsc40.c
··· 92 92 93 93 ptsc->serio = serio; 94 94 ptsc->dev = input_dev; 95 - snprintf(ptsc->phys, sizeof(ptsc->phys), "%s/input0", serio->phys); 95 + scnprintf(ptsc->phys, sizeof(ptsc->phys), "%s/input0", serio->phys); 96 96 97 97 input_dev->name = "TSC-10/25/40 Serial TouchScreen"; 98 98 input_dev->phys = ptsc->phys;