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

authored by

Andy Shevchenko and committed by
Dmitry Torokhov
7cf2d840 c2f24e91

+1 -2
+1 -2
drivers/input/touchscreen/fujitsu_ts.c
··· 108 108 109 109 fujitsu->serio = serio; 110 110 fujitsu->dev = input_dev; 111 - snprintf(fujitsu->phys, sizeof(fujitsu->phys), 112 - "%s/input0", serio->phys); 111 + scnprintf(fujitsu->phys, sizeof(fujitsu->phys), "%s/input0", serio->phys); 113 112 114 113 input_dev->name = "Fujitsu Serial Touchscreen"; 115 114 input_dev->phys = fujitsu->phys;