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

authored by

Andy Shevchenko and committed by
Dmitry Torokhov
572ffd4f c6b2deed

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