Skip to content

Commit 1828b52

Browse files
andy-shevdtor
authored andcommitted
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>
1 parent 597c12d commit 1828b52

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/input/touchscreen/penmount.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ static int pm_connect(struct serio *serio, struct serio_driver *drv)
208208

209209
pm->serio = serio;
210210
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);
212212
pm->maxcontacts = 1;
213213

214214
input_dev->name = "PenMount Serial TouchScreen";

0 commit comments

Comments
 (0)