aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r--drivers/input/touchscreen/gunze.c2
-rw-r--r--drivers/input/touchscreen/h3600_ts_input.c2
-rw-r--r--drivers/input/touchscreen/mtouch.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/touchscreen/gunze.c b/drivers/input/touchscreen/gunze.c
index 466da190ceec..b769b21973b7 100644
--- a/drivers/input/touchscreen/gunze.c
+++ b/drivers/input/touchscreen/gunze.c
@@ -129,7 +129,7 @@ static int gunze_connect(struct serio *serio, struct serio_driver *drv)
129 129
130 gunze->serio = serio; 130 gunze->serio = serio;
131 gunze->dev = input_dev; 131 gunze->dev = input_dev;
132 sprintf(gunze->phys, "%s/input0", serio->phys); 132 snprintf(gunze->phys, sizeof(serio->phys), "%s/input0", serio->phys);
133 133
134 input_dev->private = gunze; 134 input_dev->private = gunze;
135 input_dev->name = "Gunze AHL-51S TouchScreen"; 135 input_dev->name = "Gunze AHL-51S TouchScreen";
diff --git a/drivers/input/touchscreen/h3600_ts_input.c b/drivers/input/touchscreen/h3600_ts_input.c
index a595d386312f..2de2139f2fed 100644
--- a/drivers/input/touchscreen/h3600_ts_input.c
+++ b/drivers/input/touchscreen/h3600_ts_input.c
@@ -363,7 +363,7 @@ static int h3600ts_connect(struct serio *serio, struct serio_driver *drv)
363 363
364 ts->serio = serio; 364 ts->serio = serio;
365 ts->dev = input_dev; 365 ts->dev = input_dev;
366 sprintf(ts->phys, "%s/input0", serio->phys); 366 snprintf(ts->phys, sizeof(ts->phys), "%s/input0", serio->phys);
367 367
368 input_dev->name = "H3600 TouchScreen"; 368 input_dev->name = "H3600 TouchScreen";
369 input_dev->phys = ts->phys; 369 input_dev->phys = ts->phys;
diff --git a/drivers/input/touchscreen/mtouch.c b/drivers/input/touchscreen/mtouch.c
index 1d0d37eeef6e..8647a905df80 100644
--- a/drivers/input/touchscreen/mtouch.c
+++ b/drivers/input/touchscreen/mtouch.c
@@ -143,7 +143,7 @@ static int mtouch_connect(struct serio *serio, struct serio_driver *drv)
143 143
144 mtouch->serio = serio; 144 mtouch->serio = serio;
145 mtouch->dev = input_dev; 145 mtouch->dev = input_dev;
146 sprintf(mtouch->phys, "%s/input0", serio->phys); 146 snprintf(mtouch->phys, sizeof(mtouch->phys), "%s/input0", serio->phys);
147 147
148 input_dev->private = mtouch; 148 input_dev->private = mtouch;
149 input_dev->name = "MicroTouch Serial TouchScreen"; 149 input_dev->name = "MicroTouch Serial TouchScreen";