Skip to content

Commit 6dd774d

Browse files
andy-shevdtor
authored andcommitted
Input: inexio - 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/20260113082917.85109-1-andriy.shevchenko@linux.intel.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 7cf2d84 commit 6dd774d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/input/touchscreen/inexio.c

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

124124
pinexio->serio = serio;
125125
pinexio->dev = input_dev;
126-
snprintf(pinexio->phys, sizeof(pinexio->phys), "%s/input0", serio->phys);
126+
scnprintf(pinexio->phys, sizeof(pinexio->phys), "%s/input0", serio->phys);
127127

128128
input_dev->name = "iNexio Serial TouchScreen";
129129
input_dev->phys = pinexio->phys;

0 commit comments

Comments
 (0)