Commit fef5f569 authored by Joe Perches's avatar Joe Perches Committed by Dmitry Torokhov

Input: convert remaining uses of pr_warning to pr_warn

To enable eventual removal of pr_warning

This makes pr_warn use consistent for drivers/input

Prior to this patch, there were 8 uses of pr_warning and
17 uses of pr_warn in drivers/input
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 4c3362f4
...@@ -385,7 +385,7 @@ static int gameport_queue_event(void *object, struct module *owner, ...@@ -385,7 +385,7 @@ static int gameport_queue_event(void *object, struct module *owner,
} }
if (!try_module_get(owner)) { if (!try_module_get(owner)) {
pr_warning("Can't get module reference, dropping event %d\n", pr_warn("Can't get module reference, dropping event %d\n",
event_type); event_type);
kfree(event); kfree(event);
retval = -EINVAL; retval = -EINVAL;
......
...@@ -870,7 +870,8 @@ static int gc_setup_pad(struct gc *gc, int idx, int pad_type) ...@@ -870,7 +870,8 @@ static int gc_setup_pad(struct gc *gc, int idx, int pad_type)
err = gc_n64_init_ff(input_dev, idx); err = gc_n64_init_ff(input_dev, idx);
if (err) { if (err) {
pr_warning("Failed to initiate rumble for N64 device %d\n", idx); pr_warn("Failed to initiate rumble for N64 device %d\n",
idx);
goto err_free_dev; goto err_free_dev;
} }
......
...@@ -314,7 +314,8 @@ static int __init apanel_init(void) ...@@ -314,7 +314,8 @@ static int __init apanel_init(void)
if (devno >= APANEL_DEV_MAX) if (devno >= APANEL_DEV_MAX)
pr_notice(APANEL ": unknown device %u found\n", devno); pr_notice(APANEL ": unknown device %u found\n", devno);
else if (device_chip[devno] != CHIP_NONE) else if (device_chip[devno] != CHIP_NONE)
pr_warning(APANEL ": duplicate entry for devno %u\n", devno); pr_warn(APANEL ": duplicate entry for devno %u\n",
devno);
else if (method != 1 && method != 2 && method != 4) { else if (method != 1 && method != 2 && method != 4) {
pr_notice(APANEL ": unknown method %u for devno %u\n", pr_notice(APANEL ": unknown method %u for devno %u\n",
......
...@@ -84,7 +84,7 @@ static irqreturn_t input_handler(int rq, void *dev_id) ...@@ -84,7 +84,7 @@ static irqreturn_t input_handler(int rq, void *dev_id)
input_report_key(dev, event->key.keycode, input_report_key(dev, event->key.keycode,
event->key.pressed); event->key.pressed);
else else
pr_warning("unhandled keycode 0x%x\n", pr_warn("unhandled keycode 0x%x\n",
event->key.keycode); event->key.keycode);
break; break;
case XENKBD_TYPE_POS: case XENKBD_TYPE_POS:
...@@ -133,7 +133,7 @@ static int xenkbd_probe(struct xenbus_device *dev, ...@@ -133,7 +133,7 @@ static int xenkbd_probe(struct xenbus_device *dev,
ret = xenbus_write(XBT_NIL, dev->nodename, ret = xenbus_write(XBT_NIL, dev->nodename,
"request-abs-pointer", "1"); "request-abs-pointer", "1");
if (ret) { if (ret) {
pr_warning("xenkbd: can't request abs-pointer"); pr_warn("xenkbd: can't request abs-pointer\n");
abs = 0; abs = 0;
} }
} }
...@@ -327,7 +327,7 @@ static void xenkbd_backend_changed(struct xenbus_device *dev, ...@@ -327,7 +327,7 @@ static void xenkbd_backend_changed(struct xenbus_device *dev,
ret = xenbus_write(XBT_NIL, info->xbdev->nodename, ret = xenbus_write(XBT_NIL, info->xbdev->nodename,
"request-abs-pointer", "1"); "request-abs-pointer", "1");
if (ret) if (ret)
pr_warning("xenkbd: can't request abs-pointer"); pr_warn("xenkbd: can't request abs-pointer\n");
} }
xenbus_switch_state(dev, XenbusStateConnected); xenbus_switch_state(dev, XenbusStateConnected);
......
...@@ -285,7 +285,7 @@ static int serio_queue_event(void *object, struct module *owner, ...@@ -285,7 +285,7 @@ static int serio_queue_event(void *object, struct module *owner,
} }
if (!try_module_get(owner)) { if (!try_module_get(owner)) {
pr_warning("Can't get module reference, dropping event %d\n", pr_warn("Can't get module reference, dropping event %d\n",
event_type); event_type);
kfree(event); kfree(event);
retval = -EINVAL; retval = -EINVAL;
...@@ -823,7 +823,7 @@ static void serio_attach_driver(struct serio_driver *drv) ...@@ -823,7 +823,7 @@ static void serio_attach_driver(struct serio_driver *drv)
error = driver_attach(&drv->driver); error = driver_attach(&drv->driver);
if (error) if (error)
pr_warning("driver_attach() failed for %s with error %d\n", pr_warn("driver_attach() failed for %s with error %d\n",
drv->driver.name, error); drv->driver.name, error);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment