Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303613
b: refs/heads/master
c: 3f37d8e
h: refs/heads/master
i:
  303611: 360ffaf
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Apr 25, 2012
1 parent de8fe76 commit b4f3aea
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9cb757bfac332cb43122c494597dce80e5424820
refs/heads/master: 3f37d8e8e18f4ec7a1bb96ea95910e51e5775d5b
27 changes: 17 additions & 10 deletions trunk/drivers/input/misc/cm109.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@ static void cm109_submit_buzz_toggle(struct cm109_dev *dev)

error = usb_submit_urb(dev->urb_ctl, GFP_ATOMIC);
if (error)
err("%s: usb_submit_urb (urb_ctl) failed %d", __func__, error);
dev_err(&dev->intf->dev,
"%s: usb_submit_urb (urb_ctl) failed %d\n",
__func__, error);
}

/*
Expand All @@ -349,7 +351,7 @@ static void cm109_urb_irq_callback(struct urb *urb)
if (status) {
if (status == -ESHUTDOWN)
return;
err("%s: urb status %d", __func__, status);
dev_err(&dev->intf->dev, "%s: urb status %d\n", __func__, status);
}

/* Special keys */
Expand Down Expand Up @@ -396,7 +398,8 @@ static void cm109_urb_irq_callback(struct urb *urb)

error = usb_submit_urb(dev->urb_ctl, GFP_ATOMIC);
if (error)
err("%s: usb_submit_urb (urb_ctl) failed %d",
dev_err(&dev->intf->dev,
"%s: usb_submit_urb (urb_ctl) failed %d\n",
__func__, error);
}

Expand All @@ -416,7 +419,7 @@ static void cm109_urb_ctl_callback(struct urb *urb)
dev->ctl_data->byte[3]);

if (status)
err("%s: urb status %d", __func__, status);
dev_err(&dev->intf->dev, "%s: urb status %d\n", __func__, status);

spin_lock(&dev->ctl_submit_lock);

Expand All @@ -433,7 +436,8 @@ static void cm109_urb_ctl_callback(struct urb *urb)
dev->irq_urb_pending = 1;
error = usb_submit_urb(dev->urb_irq, GFP_ATOMIC);
if (error)
err("%s: usb_submit_urb (urb_irq) failed %d",
dev_err(&dev->intf->dev,
"%s: usb_submit_urb (urb_irq) failed %d\n",
__func__, error);
}
}
Expand Down Expand Up @@ -476,7 +480,8 @@ static void cm109_toggle_buzzer_sync(struct cm109_dev *dev, int on)
dev->ctl_data,
USB_PKT_LEN, USB_CTRL_SET_TIMEOUT);
if (error < 0 && error != -EINTR)
err("%s: usb_control_msg() failed %d", __func__, error);
dev_err(&dev->intf->dev, "%s: usb_control_msg() failed %d\n",
__func__, error);
}

static void cm109_stop_traffic(struct cm109_dev *dev)
Expand Down Expand Up @@ -518,8 +523,8 @@ static int cm109_input_open(struct input_dev *idev)

error = usb_autopm_get_interface(dev->intf);
if (error < 0) {
err("%s - cannot autoresume, result %d",
__func__, error);
dev_err(&idev->dev, "%s - cannot autoresume, result %d\n",
__func__, error);
return error;
}

Expand All @@ -537,7 +542,8 @@ static int cm109_input_open(struct input_dev *idev)

error = usb_submit_urb(dev->urb_ctl, GFP_KERNEL);
if (error)
err("%s: usb_submit_urb (urb_ctl) failed %d", __func__, error);
dev_err(&idev->dev, "%s: usb_submit_urb (urb_ctl) failed %d\n",
__func__, error);
else
dev->open = 1;

Expand Down Expand Up @@ -710,7 +716,8 @@ static int cm109_usb_probe(struct usb_interface *intf,
pipe = usb_rcvintpipe(udev, endpoint->bEndpointAddress);
ret = usb_maxpacket(udev, pipe, usb_pipeout(pipe));
if (ret != USB_PKT_LEN)
err("invalid payload size %d, expected %d", ret, USB_PKT_LEN);
dev_err(&intf->dev, "invalid payload size %d, expected %d\n",
ret, USB_PKT_LEN);

/* initialise irq urb */
usb_fill_int_urb(dev->urb_irq, udev, pipe, dev->irq_data,
Expand Down

0 comments on commit b4f3aea

Please sign in to comment.