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: touchwin - 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/20260113082938.89437-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Andy Shevchenko and committed by
Dmitry Torokhov
9f18271c 2d3bb716

+1 -1
+1 -1
drivers/input/touchscreen/touchwin.c
··· 118 118 119 119 tw->serio = serio; 120 120 tw->dev = input_dev; 121 - snprintf(tw->phys, sizeof(tw->phys), "%s/input0", serio->phys); 121 + scnprintf(tw->phys, sizeof(tw->phys), "%s/input0", serio->phys); 122 122 123 123 input_dev->name = "Touchwindow Serial TouchScreen"; 124 124 input_dev->phys = tw->phys;