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

authored by

Andy Shevchenko and committed by
Dmitry Torokhov
c2f24e91 ed9b2fc1

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