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

authored by

Andy Shevchenko and committed by
Dmitry Torokhov
2d3bb716 b2c767ef

+1 -1
+1 -1
drivers/input/touchscreen/touchright.c
··· 111 111 112 112 tr->serio = serio; 113 113 tr->dev = input_dev; 114 - snprintf(tr->phys, sizeof(tr->phys), "%s/input0", serio->phys); 114 + scnprintf(tr->phys, sizeof(tr->phys), "%s/input0", serio->phys); 115 115 116 116 input_dev->name = "Touchright Serial TouchScreen"; 117 117 input_dev->phys = tr->phys;