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

authored by

Andy Shevchenko and committed by
Dmitry Torokhov
be1735de 6b88bc3f

+1 -1
+1 -1
drivers/input/touchscreen/elo.c
··· 320 320 elo->expected_packet = ELO10_TOUCH_PACKET; 321 321 mutex_init(&elo->cmd_mutex); 322 322 init_completion(&elo->cmd_done); 323 - snprintf(elo->phys, sizeof(elo->phys), "%s/input0", serio->phys); 323 + scnprintf(elo->phys, sizeof(elo->phys), "%s/input0", serio->phys); 324 324 325 325 input_dev->name = "Elo Serial TouchScreen"; 326 326 input_dev->phys = elo->phys;