mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-02 01:08:26 -04:00
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>
This commit is contained in:
committed by
Dmitry Torokhov
parent
c6b2deed51
commit
572ffd4f44
@@ -119,8 +119,8 @@ static int dynapro_connect(struct serio *serio, struct serio_driver *drv)
|
||||
|
||||
pdynapro->serio = serio;
|
||||
pdynapro->dev = input_dev;
|
||||
snprintf(pdynapro->phys, sizeof(pdynapro->phys),
|
||||
"%s/input0", serio->phys);
|
||||
scnprintf(pdynapro->phys, sizeof(pdynapro->phys),
|
||||
"%s/input0", serio->phys);
|
||||
|
||||
input_dev->name = "Dynapro Serial TouchScreen";
|
||||
input_dev->phys = pdynapro->phys;
|
||||
|
||||
Reference in New Issue
Block a user