aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/input/misc/cm109.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/input/misc/cm109.c b/drivers/input/misc/cm109.c
index 404fd49243f8..1166e8443304 100644
--- a/drivers/input/misc/cm109.c
+++ b/drivers/input/misc/cm109.c
@@ -311,14 +311,12 @@ static void cm109_urb_irq_callback(struct urb *urb)
311 const int status = urb->status; 311 const int status = urb->status;
312 int error; 312 int error;
313 313
314#if CM109_DEBUG 314 dev_dbg(&urb->dev->dev, "### URB IRQ: [0x%02x 0x%02x 0x%02x 0x%02x] keybit=0x%02x",
315 info("### URB IRQ: [0x%02x 0x%02x 0x%02x 0x%02x] keybit=0x%02x",
316 dev->irq_data->byte[0], 315 dev->irq_data->byte[0],
317 dev->irq_data->byte[1], 316 dev->irq_data->byte[1],
318 dev->irq_data->byte[2], 317 dev->irq_data->byte[2],
319 dev->irq_data->byte[3], 318 dev->irq_data->byte[3],
320 dev->keybit); 319 dev->keybit);
321#endif
322 320
323 if (status) { 321 if (status) {
324 if (status == -ESHUTDOWN) 322 if (status == -ESHUTDOWN)
@@ -383,13 +381,11 @@ static void cm109_urb_ctl_callback(struct urb *urb)
383 const int status = urb->status; 381 const int status = urb->status;
384 int error; 382 int error;
385 383
386#if CM109_DEBUG 384 dev_dbg(&urb->dev->dev, "### URB CTL: [0x%02x 0x%02x 0x%02x 0x%02x]",
387 info("### URB CTL: [0x%02x 0x%02x 0x%02x 0x%02x]",
388 dev->ctl_data->byte[0], 385 dev->ctl_data->byte[0],
389 dev->ctl_data->byte[1], 386 dev->ctl_data->byte[1],
390 dev->ctl_data->byte[2], 387 dev->ctl_data->byte[2],
391 dev->ctl_data->byte[3]); 388 dev->ctl_data->byte[3]);
392#endif
393 389
394 if (status) 390 if (status)
395 err("%s: urb status %d", __func__, status); 391 err("%s: urb status %d", __func__, status);
@@ -549,9 +545,8 @@ static int cm109_input_ev(struct input_dev *idev, unsigned int type,
549{ 545{
550 struct cm109_dev *dev = input_get_drvdata(idev); 546 struct cm109_dev *dev = input_get_drvdata(idev);
551 547
552#if CM109_DEBUG 548 dev_dbg(&dev->udev->dev,
553 info("input_ev: type=%u code=%u value=%d", type, code, value); 549 "input_ev: type=%u code=%u value=%d", type, code, value);
554#endif
555 550
556 if (type != EV_SND) 551 if (type != EV_SND)
557 return -EINVAL; 552 return -EINVAL;
@@ -765,7 +760,7 @@ static int cm109_usb_suspend(struct usb_interface *intf, pm_message_t message)
765{ 760{
766 struct cm109_dev *dev = usb_get_intfdata(intf); 761 struct cm109_dev *dev = usb_get_intfdata(intf);
767 762
768 info("cm109: usb_suspend (event=%d)", message.event); 763 dev_info(&intf->dev, "cm109: usb_suspend (event=%d)", message.event);
769 764
770 mutex_lock(&dev->pm_mutex); 765 mutex_lock(&dev->pm_mutex);
771 cm109_stop_traffic(dev); 766 cm109_stop_traffic(dev);
@@ -778,7 +773,7 @@ static int cm109_usb_resume(struct usb_interface *intf)
778{ 773{
779 struct cm109_dev *dev = usb_get_intfdata(intf); 774 struct cm109_dev *dev = usb_get_intfdata(intf);
780 775
781 info("cm109: usb_resume"); 776 dev_info(&intf->dev, "cm109: usb_resume");
782 777
783 mutex_lock(&dev->pm_mutex); 778 mutex_lock(&dev->pm_mutex);
784 cm109_restore_state(dev); 779 cm109_restore_state(dev);
@@ -837,15 +832,19 @@ static int __init cm109_select_keymap(void)
837 /* Load the phone keymap */ 832 /* Load the phone keymap */
838 if (!strcasecmp(phone, "kip1000")) { 833 if (!strcasecmp(phone, "kip1000")) {
839 keymap = keymap_kip1000; 834 keymap = keymap_kip1000;
840 info("Keymap for Komunikate KIP1000 phone loaded"); 835 printk(KERN_INFO KBUILD_MODNAME ": "
836 "Keymap for Komunikate KIP1000 phone loaded");
841 } else if (!strcasecmp(phone, "gtalk")) { 837 } else if (!strcasecmp(phone, "gtalk")) {
842 keymap = keymap_gtalk; 838 keymap = keymap_gtalk;
843 info("Keymap for Genius G-talk phone loaded"); 839 printk(KERN_INFO KBUILD_MODNAME ": "
840 "Keymap for Genius G-talk phone loaded");
844 } else if (!strcasecmp(phone, "usbph01")) { 841 } else if (!strcasecmp(phone, "usbph01")) {
845 keymap = keymap_usbph01; 842 keymap = keymap_usbph01;
846 info("Keymap for Allied-Telesis Corega USBPH01 phone loaded"); 843 printk(KERN_INFO KBUILD_MODNAME ": "
844 "Keymap for Allied-Telesis Corega USBPH01 phone loaded");
847 } else { 845 } else {
848 err("Unsupported phone: %s", phone); 846 printk(KERN_ERR KBUILD_MODNAME ": "
847 "Unsupported phone: %s", phone);
849 return -EINVAL; 848 return -EINVAL;
850 } 849 }
851 850
@@ -864,7 +863,8 @@ static int __init cm109_init(void)
864 if (err) 863 if (err)
865 return err; 864 return err;
866 865
867 info(DRIVER_DESC ": " DRIVER_VERSION " (C) " DRIVER_AUTHOR); 866 printk(KERN_INFO KBUILD_MODNAME ": "
867 DRIVER_DESC ": " DRIVER_VERSION " (C) " DRIVER_AUTHOR);
868 868
869 return 0; 869 return 0;
870} 870}