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

authored by

Andy Shevchenko and committed by
Dmitry Torokhov
1828b520 597c12d9

+1 -1
+1 -1
drivers/input/touchscreen/penmount.c
··· 208 208 209 209 pm->serio = serio; 210 210 pm->dev = input_dev; 211 - snprintf(pm->phys, sizeof(pm->phys), "%s/input0", serio->phys); 211 + scnprintf(pm->phys, sizeof(pm->phys), "%s/input0", serio->phys); 212 212 pm->maxcontacts = 1; 213 213 214 214 input_dev->name = "PenMount Serial TouchScreen";