[PATCH 2/3] Input: tsc2007 - use scnprintf() when formatting phys string

From: Dmitry Torokhov

Date: Fri Nov 13 2026 - 19:02:43 EST


Use scnprintf() instead of snprintf() when constructing the physical
device path string to follow kernel string formatting conventions.

Suggested-by: Andy Shevchenko <andy@xxxxxxxxxx>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
---
drivers/input/touchscreen/tsc2007_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/touchscreen/tsc2007_core.c b/drivers/input/touchscreen/tsc2007_core.c
index fc707e672424..d55034914808 100644
--- a/drivers/input/touchscreen/tsc2007_core.c
+++ b/drivers/input/touchscreen/tsc2007_core.c
@@ -252,7 +252,7 @@ static int tsc2007_input_configure(struct tsc2007 *ts)

ts->input = input_dev;

- snprintf(ts->phys, sizeof(ts->phys), "%s/input0", dev_name(dev));
+ scnprintf(ts->phys, sizeof(ts->phys), "%s/input0", dev_name(dev));

input_dev->name = "TSC2007 Touchscreen";
input_dev->phys = ts->phys;
--
2.56.0.679.gc527c65306-goog