diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-23 13:10:23 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-23 13:10:23 -0400 |
commit | a4e0d9af403d099e751797f6cc69e4a8e2d78ef1 (patch) | |
tree | 6f4afdffe5dbaad7529be987b8c3259a07395031 /drivers/input/misc/ati_remote.c | |
parent | c60f2b5c1defb6b1345968e1c65c2008c221d57d (diff) | |
parent | c010b2f76c3032e48097a6eef291d8593d5d79a6 (diff) |
Merge ../linux-2.6
Diffstat (limited to 'drivers/input/misc/ati_remote.c')
-rw-r--r-- | drivers/input/misc/ati_remote.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/input/misc/ati_remote.c b/drivers/input/misc/ati_remote.c index f3b86c2b0797..debfc1af9d95 100644 --- a/drivers/input/misc/ati_remote.c +++ b/drivers/input/misc/ati_remote.c | |||
@@ -330,7 +330,7 @@ static int ati_remote_open(struct input_dev *inputdev) | |||
330 | ati_remote->irq_urb->dev = ati_remote->udev; | 330 | ati_remote->irq_urb->dev = ati_remote->udev; |
331 | if (usb_submit_urb(ati_remote->irq_urb, GFP_KERNEL)) { | 331 | if (usb_submit_urb(ati_remote->irq_urb, GFP_KERNEL)) { |
332 | dev_err(&ati_remote->interface->dev, | 332 | dev_err(&ati_remote->interface->dev, |
333 | "%s: usb_submit_urb failed!\n", __FUNCTION__); | 333 | "%s: usb_submit_urb failed!\n", __func__); |
334 | return -EIO; | 334 | return -EIO; |
335 | } | 335 | } |
336 | 336 | ||
@@ -356,7 +356,7 @@ static void ati_remote_irq_out(struct urb *urb) | |||
356 | 356 | ||
357 | if (urb->status) { | 357 | if (urb->status) { |
358 | dev_dbg(&ati_remote->interface->dev, "%s: status %d\n", | 358 | dev_dbg(&ati_remote->interface->dev, "%s: status %d\n", |
359 | __FUNCTION__, urb->status); | 359 | __func__, urb->status); |
360 | return; | 360 | return; |
361 | } | 361 | } |
362 | 362 | ||
@@ -601,17 +601,17 @@ static void ati_remote_irq_in(struct urb *urb) | |||
601 | case -ENOENT: | 601 | case -ENOENT: |
602 | case -ESHUTDOWN: | 602 | case -ESHUTDOWN: |
603 | dev_dbg(&ati_remote->interface->dev, "%s: urb error status, unlink? \n", | 603 | dev_dbg(&ati_remote->interface->dev, "%s: urb error status, unlink? \n", |
604 | __FUNCTION__); | 604 | __func__); |
605 | return; | 605 | return; |
606 | default: /* error */ | 606 | default: /* error */ |
607 | dev_dbg(&ati_remote->interface->dev, "%s: Nonzero urb status %d\n", | 607 | dev_dbg(&ati_remote->interface->dev, "%s: Nonzero urb status %d\n", |
608 | __FUNCTION__, urb->status); | 608 | __func__, urb->status); |
609 | } | 609 | } |
610 | 610 | ||
611 | retval = usb_submit_urb(urb, GFP_ATOMIC); | 611 | retval = usb_submit_urb(urb, GFP_ATOMIC); |
612 | if (retval) | 612 | if (retval) |
613 | dev_err(&ati_remote->interface->dev, "%s: usb_submit_urb()=%d\n", | 613 | dev_err(&ati_remote->interface->dev, "%s: usb_submit_urb()=%d\n", |
614 | __FUNCTION__, retval); | 614 | __func__, retval); |
615 | } | 615 | } |
616 | 616 | ||
617 | /* | 617 | /* |
@@ -734,7 +734,7 @@ static int ati_remote_probe(struct usb_interface *interface, const struct usb_de | |||
734 | int err = -ENOMEM; | 734 | int err = -ENOMEM; |
735 | 735 | ||
736 | if (iface_host->desc.bNumEndpoints != 2) { | 736 | if (iface_host->desc.bNumEndpoints != 2) { |
737 | err("%s: Unexpected desc.bNumEndpoints\n", __FUNCTION__); | 737 | err("%s: Unexpected desc.bNumEndpoints\n", __func__); |
738 | return -ENODEV; | 738 | return -ENODEV; |
739 | } | 739 | } |
740 | 740 | ||
@@ -742,11 +742,11 @@ static int ati_remote_probe(struct usb_interface *interface, const struct usb_de | |||
742 | endpoint_out = &iface_host->endpoint[1].desc; | 742 | endpoint_out = &iface_host->endpoint[1].desc; |
743 | 743 | ||
744 | if (!usb_endpoint_is_int_in(endpoint_in)) { | 744 | if (!usb_endpoint_is_int_in(endpoint_in)) { |
745 | err("%s: Unexpected endpoint_in\n", __FUNCTION__); | 745 | err("%s: Unexpected endpoint_in\n", __func__); |
746 | return -ENODEV; | 746 | return -ENODEV; |
747 | } | 747 | } |
748 | if (le16_to_cpu(endpoint_in->wMaxPacketSize) == 0) { | 748 | if (le16_to_cpu(endpoint_in->wMaxPacketSize) == 0) { |
749 | err("%s: endpoint_in message size==0? \n", __FUNCTION__); | 749 | err("%s: endpoint_in message size==0? \n", __func__); |
750 | return -ENODEV; | 750 | return -ENODEV; |
751 | } | 751 | } |
752 | 752 | ||
@@ -814,7 +814,7 @@ static void ati_remote_disconnect(struct usb_interface *interface) | |||
814 | ati_remote = usb_get_intfdata(interface); | 814 | ati_remote = usb_get_intfdata(interface); |
815 | usb_set_intfdata(interface, NULL); | 815 | usb_set_intfdata(interface, NULL); |
816 | if (!ati_remote) { | 816 | if (!ati_remote) { |
817 | warn("%s - null device?\n", __FUNCTION__); | 817 | warn("%s - null device?\n", __func__); |
818 | return; | 818 | return; |
819 | } | 819 | } |
820 | 820 | ||