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

authored by

Andy Shevchenko and committed by
Dmitry Torokhov
6b88bc3f 572ffd4f

+1 -2
+1 -2
drivers/input/touchscreen/egalax_ts_serial.c
··· 108 108 109 109 egalax->serio = serio; 110 110 egalax->input = input_dev; 111 - snprintf(egalax->phys, sizeof(egalax->phys), 112 - "%s/input0", serio->phys); 111 + scnprintf(egalax->phys, sizeof(egalax->phys), "%s/input0", serio->phys); 113 112 114 113 input_dev->name = "EETI eGalaxTouch Serial TouchScreen"; 115 114 input_dev->phys = egalax->phys;