aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/h3600_ts_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/touchscreen/h3600_ts_input.c')
-rw-r--r--drivers/input/touchscreen/h3600_ts_input.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/input/touchscreen/h3600_ts_input.c b/drivers/input/touchscreen/h3600_ts_input.c
index a18d56bdafd9..e2b910018773 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;
@@ -399,16 +399,14 @@ static int h3600ts_connect(struct serio *serio, struct serio_driver *drv)
399 set_GPIO_IRQ_edge(GPIO_BITSY_NPOWER_BUTTON, GPIO_RISING_EDGE); 399 set_GPIO_IRQ_edge(GPIO_BITSY_NPOWER_BUTTON, GPIO_RISING_EDGE);
400 400
401 if (request_irq(IRQ_GPIO_BITSY_ACTION_BUTTON, action_button_handler, 401 if (request_irq(IRQ_GPIO_BITSY_ACTION_BUTTON, action_button_handler,
402 SA_SHIRQ | SA_INTERRUPT | SA_SAMPLE_RANDOM, 402 IRQF_SHARED | IRQF_DISABLED, "h3600_action", &ts->dev)) {
403 "h3600_action", &ts->dev)) {
404 printk(KERN_ERR "h3600ts.c: Could not allocate Action Button IRQ!\n"); 403 printk(KERN_ERR "h3600ts.c: Could not allocate Action Button IRQ!\n");
405 err = -EBUSY; 404 err = -EBUSY;
406 goto fail2; 405 goto fail2;
407 } 406 }
408 407
409 if (request_irq(IRQ_GPIO_BITSY_NPOWER_BUTTON, npower_button_handler, 408 if (request_irq(IRQ_GPIO_BITSY_NPOWER_BUTTON, npower_button_handler,
410 SA_SHIRQ | SA_INTERRUPT | SA_SAMPLE_RANDOM, 409 IRQF_SHARED | IRQF_DISABLED, "h3600_suspend", &ts->dev)) {
411 "h3600_suspend", &ts->dev)) {
412 printk(KERN_ERR "h3600ts.c: Could not allocate Power Button IRQ!\n"); 410 printk(KERN_ERR "h3600ts.c: Could not allocate Power Button IRQ!\n");
413 err = -EBUSY; 411 err = -EBUSY;
414 goto fail3; 412 goto fail3;