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

authored by

Andy Shevchenko and committed by
Dmitry Torokhov
ed9b2fc1 be1735de

+1 -1
+1 -1
drivers/input/touchscreen/gunze.c
··· 106 106 107 107 gunze->serio = serio; 108 108 gunze->dev = input_dev; 109 - snprintf(gunze->phys, sizeof(serio->phys), "%s/input0", serio->phys); 109 + scnprintf(gunze->phys, sizeof(serio->phys), "%s/input0", serio->phys); 110 110 111 111 input_dev->name = "Gunze AHL-51S TouchScreen"; 112 112 input_dev->phys = gunze->phys;