aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/oti6858.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-03-03 19:08:34 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-04-25 00:16:55 -0400
commit441b62c1edb986827154768d89bbac0ba779984f (patch)
tree13724c22d1b190a36f0ddbba38554e6c66bea6af /drivers/usb/serial/oti6858.c
parent14722ef4acedc643f0b78b7165ceff2d300dae4d (diff)
USB: replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/oti6858.c')
-rw-r--r--drivers/usb/serial/oti6858.c108
1 files changed, 54 insertions, 54 deletions
diff --git a/drivers/usb/serial/oti6858.c b/drivers/usb/serial/oti6858.c
index 20a680ed0cc7..87f33e06301c 100644
--- a/drivers/usb/serial/oti6858.c
+++ b/drivers/usb/serial/oti6858.c
@@ -235,10 +235,10 @@ static void setup_line(struct work_struct *work)
235 unsigned long flags; 235 unsigned long flags;
236 int result; 236 int result;
237 237
238 dbg("%s(port = %d)", __FUNCTION__, port->number); 238 dbg("%s(port = %d)", __func__, port->number);
239 239
240 if ((new_setup = kmalloc(OTI6858_CTRL_PKT_SIZE, GFP_KERNEL)) == NULL) { 240 if ((new_setup = kmalloc(OTI6858_CTRL_PKT_SIZE, GFP_KERNEL)) == NULL) {
241 dev_err(&port->dev, "%s(): out of memory!\n", __FUNCTION__); 241 dev_err(&port->dev, "%s(): out of memory!\n", __func__);
242 /* we will try again */ 242 /* we will try again */
243 schedule_delayed_work(&priv->delayed_setup_work, msecs_to_jiffies(2)); 243 schedule_delayed_work(&priv->delayed_setup_work, msecs_to_jiffies(2));
244 return; 244 return;
@@ -253,7 +253,7 @@ static void setup_line(struct work_struct *work)
253 100); 253 100);
254 254
255 if (result != OTI6858_CTRL_PKT_SIZE) { 255 if (result != OTI6858_CTRL_PKT_SIZE) {
256 dev_err(&port->dev, "%s(): error reading status\n", __FUNCTION__); 256 dev_err(&port->dev, "%s(): error reading status\n", __func__);
257 kfree(new_setup); 257 kfree(new_setup);
258 /* we will try again */ 258 /* we will try again */
259 schedule_delayed_work(&priv->delayed_setup_work, msecs_to_jiffies(2)); 259 schedule_delayed_work(&priv->delayed_setup_work, msecs_to_jiffies(2));
@@ -286,12 +286,12 @@ static void setup_line(struct work_struct *work)
286 priv->setup_done = 1; 286 priv->setup_done = 1;
287 spin_unlock_irqrestore(&priv->lock, flags); 287 spin_unlock_irqrestore(&priv->lock, flags);
288 288
289 dbg("%s(): submitting interrupt urb", __FUNCTION__); 289 dbg("%s(): submitting interrupt urb", __func__);
290 port->interrupt_in_urb->dev = port->serial->dev; 290 port->interrupt_in_urb->dev = port->serial->dev;
291 result = usb_submit_urb(port->interrupt_in_urb, GFP_ATOMIC); 291 result = usb_submit_urb(port->interrupt_in_urb, GFP_ATOMIC);
292 if (result != 0) { 292 if (result != 0) {
293 dev_err(&port->dev, "%s(): usb_submit_urb() failed" 293 dev_err(&port->dev, "%s(): usb_submit_urb() failed"
294 " with error %d\n", __FUNCTION__, result); 294 " with error %d\n", __func__, result);
295 } 295 }
296} 296}
297 297
@@ -303,7 +303,7 @@ void send_data(struct work_struct *work)
303 unsigned long flags; 303 unsigned long flags;
304 unsigned char allow; 304 unsigned char allow;
305 305
306 dbg("%s(port = %d)", __FUNCTION__, port->number); 306 dbg("%s(port = %d)", __func__, port->number);
307 307
308 spin_lock_irqsave(&priv->lock, flags); 308 spin_lock_irqsave(&priv->lock, flags);
309 if (priv->flags.write_urb_in_use) { 309 if (priv->flags.write_urb_in_use) {
@@ -331,12 +331,12 @@ void send_data(struct work_struct *work)
331 if (count == 0) { 331 if (count == 0) {
332 priv->flags.write_urb_in_use = 0; 332 priv->flags.write_urb_in_use = 0;
333 333
334 dbg("%s(): submitting interrupt urb", __FUNCTION__); 334 dbg("%s(): submitting interrupt urb", __func__);
335 port->interrupt_in_urb->dev = port->serial->dev; 335 port->interrupt_in_urb->dev = port->serial->dev;
336 result = usb_submit_urb(port->interrupt_in_urb, GFP_ATOMIC); 336 result = usb_submit_urb(port->interrupt_in_urb, GFP_ATOMIC);
337 if (result != 0) { 337 if (result != 0) {
338 dev_err(&port->dev, "%s(): usb_submit_urb() failed" 338 dev_err(&port->dev, "%s(): usb_submit_urb() failed"
339 " with error %d\n", __FUNCTION__, result); 339 " with error %d\n", __func__, result);
340 } 340 }
341 return; 341 return;
342 } 342 }
@@ -350,7 +350,7 @@ void send_data(struct work_struct *work)
350 result = usb_submit_urb(port->write_urb, GFP_ATOMIC); 350 result = usb_submit_urb(port->write_urb, GFP_ATOMIC);
351 if (result != 0) { 351 if (result != 0) {
352 dev_err(&port->dev, "%s(): usb_submit_urb() failed" 352 dev_err(&port->dev, "%s(): usb_submit_urb() failed"
353 " with error %d\n", __FUNCTION__, result); 353 " with error %d\n", __func__, result);
354 priv->flags.write_urb_in_use = 0; 354 priv->flags.write_urb_in_use = 0;
355 } 355 }
356 356
@@ -401,7 +401,7 @@ static int oti6858_write(struct usb_serial_port *port,
401 struct oti6858_private *priv = usb_get_serial_port_data(port); 401 struct oti6858_private *priv = usb_get_serial_port_data(port);
402 unsigned long flags; 402 unsigned long flags;
403 403
404 dbg("%s(port = %d, count = %d)", __FUNCTION__, port->number, count); 404 dbg("%s(port = %d, count = %d)", __func__, port->number, count);
405 405
406 if (!count) 406 if (!count)
407 return count; 407 return count;
@@ -419,7 +419,7 @@ static int oti6858_write_room(struct usb_serial_port *port)
419 int room = 0; 419 int room = 0;
420 unsigned long flags; 420 unsigned long flags;
421 421
422 dbg("%s(port = %d)", __FUNCTION__, port->number); 422 dbg("%s(port = %d)", __func__, port->number);
423 423
424 spin_lock_irqsave(&priv->lock, flags); 424 spin_lock_irqsave(&priv->lock, flags);
425 room = oti6858_buf_space_avail(priv->buf); 425 room = oti6858_buf_space_avail(priv->buf);
@@ -434,7 +434,7 @@ static int oti6858_chars_in_buffer(struct usb_serial_port *port)
434 int chars = 0; 434 int chars = 0;
435 unsigned long flags; 435 unsigned long flags;
436 436
437 dbg("%s(port = %d)", __FUNCTION__, port->number); 437 dbg("%s(port = %d)", __func__, port->number);
438 438
439 spin_lock_irqsave(&priv->lock, flags); 439 spin_lock_irqsave(&priv->lock, flags);
440 chars = oti6858_buf_data_avail(priv->buf); 440 chars = oti6858_buf_data_avail(priv->buf);
@@ -453,10 +453,10 @@ static void oti6858_set_termios(struct usb_serial_port *port,
453 u16 divisor; 453 u16 divisor;
454 int br; 454 int br;
455 455
456 dbg("%s(port = %d)", __FUNCTION__, port->number); 456 dbg("%s(port = %d)", __func__, port->number);
457 457
458 if (!port->tty || !port->tty->termios) { 458 if (!port->tty || !port->tty->termios) {
459 dbg("%s(): no tty structures", __FUNCTION__); 459 dbg("%s(): no tty structures", __func__);
460 return; 460 return;
461 } 461 }
462 462
@@ -572,7 +572,7 @@ static int oti6858_open(struct usb_serial_port *port, struct file *filp)
572 unsigned long flags; 572 unsigned long flags;
573 int result; 573 int result;
574 574
575 dbg("%s(port = %d)", __FUNCTION__, port->number); 575 dbg("%s(port = %d)", __func__, port->number);
576 576
577 usb_clear_halt(serial->dev, port->write_urb->pipe); 577 usb_clear_halt(serial->dev, port->write_urb->pipe);
578 usb_clear_halt(serial->dev, port->read_urb->pipe); 578 usb_clear_halt(serial->dev, port->read_urb->pipe);
@@ -581,7 +581,7 @@ static int oti6858_open(struct usb_serial_port *port, struct file *filp)
581 return 0; 581 return 0;
582 582
583 if ((buf = kmalloc(OTI6858_CTRL_PKT_SIZE, GFP_KERNEL)) == NULL) { 583 if ((buf = kmalloc(OTI6858_CTRL_PKT_SIZE, GFP_KERNEL)) == NULL) {
584 dev_err(&port->dev, "%s(): out of memory!\n", __FUNCTION__); 584 dev_err(&port->dev, "%s(): out of memory!\n", __func__);
585 return -ENOMEM; 585 return -ENOMEM;
586 } 586 }
587 587
@@ -610,12 +610,12 @@ static int oti6858_open(struct usb_serial_port *port, struct file *filp)
610 spin_unlock_irqrestore(&priv->lock, flags); 610 spin_unlock_irqrestore(&priv->lock, flags);
611 kfree(buf); 611 kfree(buf);
612 612
613 dbg("%s(): submitting interrupt urb", __FUNCTION__); 613 dbg("%s(): submitting interrupt urb", __func__);
614 port->interrupt_in_urb->dev = serial->dev; 614 port->interrupt_in_urb->dev = serial->dev;
615 result = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL); 615 result = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL);
616 if (result != 0) { 616 if (result != 0) {
617 dev_err(&port->dev, "%s(): usb_submit_urb() failed" 617 dev_err(&port->dev, "%s(): usb_submit_urb() failed"
618 " with error %d\n", __FUNCTION__, result); 618 " with error %d\n", __func__, result);
619 oti6858_close(port, NULL); 619 oti6858_close(port, NULL);
620 return -EPROTO; 620 return -EPROTO;
621 } 621 }
@@ -634,14 +634,14 @@ static void oti6858_close(struct usb_serial_port *port, struct file *filp)
634 long timeout; 634 long timeout;
635 wait_queue_t wait; 635 wait_queue_t wait;
636 636
637 dbg("%s(port = %d)", __FUNCTION__, port->number); 637 dbg("%s(port = %d)", __func__, port->number);
638 638
639 /* wait for data to drain from the buffer */ 639 /* wait for data to drain from the buffer */
640 spin_lock_irqsave(&priv->lock, flags); 640 spin_lock_irqsave(&priv->lock, flags);
641 timeout = 30 * HZ; /* PL2303_CLOSING_WAIT */ 641 timeout = 30 * HZ; /* PL2303_CLOSING_WAIT */
642 init_waitqueue_entry(&wait, current); 642 init_waitqueue_entry(&wait, current);
643 add_wait_queue(&port->tty->write_wait, &wait); 643 add_wait_queue(&port->tty->write_wait, &wait);
644 dbg("%s(): entering wait loop", __FUNCTION__); 644 dbg("%s(): entering wait loop", __func__);
645 for (;;) { 645 for (;;) {
646 set_current_state(TASK_INTERRUPTIBLE); 646 set_current_state(TASK_INTERRUPTIBLE);
647 if (oti6858_buf_data_avail(priv->buf) == 0 647 if (oti6858_buf_data_avail(priv->buf) == 0
@@ -654,7 +654,7 @@ static void oti6858_close(struct usb_serial_port *port, struct file *filp)
654 } 654 }
655 set_current_state(TASK_RUNNING); 655 set_current_state(TASK_RUNNING);
656 remove_wait_queue(&port->tty->write_wait, &wait); 656 remove_wait_queue(&port->tty->write_wait, &wait);
657 dbg("%s(): after wait loop", __FUNCTION__); 657 dbg("%s(): after wait loop", __func__);
658 658
659 /* clear out any remaining data in the buffer */ 659 /* clear out any remaining data in the buffer */
660 oti6858_buf_clear(priv->buf); 660 oti6858_buf_clear(priv->buf);
@@ -675,7 +675,7 @@ static void oti6858_close(struct usb_serial_port *port, struct file *filp)
675 */ 675 */
676 timeout = 2*HZ; 676 timeout = 2*HZ;
677 schedule_timeout_interruptible(timeout); 677 schedule_timeout_interruptible(timeout);
678 dbg("%s(): after schedule_timeout_interruptible()", __FUNCTION__); 678 dbg("%s(): after schedule_timeout_interruptible()", __func__);
679 679
680 /* cancel scheduled setup */ 680 /* cancel scheduled setup */
681 cancel_delayed_work(&priv->delayed_setup_work); 681 cancel_delayed_work(&priv->delayed_setup_work);
@@ -683,7 +683,7 @@ static void oti6858_close(struct usb_serial_port *port, struct file *filp)
683 flush_scheduled_work(); 683 flush_scheduled_work();
684 684
685 /* shutdown our urbs */ 685 /* shutdown our urbs */
686 dbg("%s(): shutting down urbs", __FUNCTION__); 686 dbg("%s(): shutting down urbs", __func__);
687 usb_kill_urb(port->write_urb); 687 usb_kill_urb(port->write_urb);
688 usb_kill_urb(port->read_urb); 688 usb_kill_urb(port->read_urb);
689 usb_kill_urb(port->interrupt_in_urb); 689 usb_kill_urb(port->interrupt_in_urb);
@@ -706,7 +706,7 @@ static int oti6858_tiocmset(struct usb_serial_port *port, struct file *file,
706 u8 control; 706 u8 control;
707 707
708 dbg("%s(port = %d, set = 0x%08x, clear = 0x%08x)", 708 dbg("%s(port = %d, set = 0x%08x, clear = 0x%08x)",
709 __FUNCTION__, port->number, set, clear); 709 __func__, port->number, set, clear);
710 710
711 if (!usb_get_intfdata(port->serial->interface)) 711 if (!usb_get_intfdata(port->serial->interface))
712 return -ENODEV; 712 return -ENODEV;
@@ -738,7 +738,7 @@ static int oti6858_tiocmget(struct usb_serial_port *port, struct file *file)
738 unsigned pin_state; 738 unsigned pin_state;
739 unsigned result = 0; 739 unsigned result = 0;
740 740
741 dbg("%s(port = %d)", __FUNCTION__, port->number); 741 dbg("%s(port = %d)", __func__, port->number);
742 742
743 if (!usb_get_intfdata(port->serial->interface)) 743 if (!usb_get_intfdata(port->serial->interface))
744 return -ENODEV; 744 return -ENODEV;
@@ -761,7 +761,7 @@ static int oti6858_tiocmget(struct usb_serial_port *port, struct file *file)
761 if ((pin_state & PIN_DCD) != 0) 761 if ((pin_state & PIN_DCD) != 0)
762 result |= TIOCM_CD; 762 result |= TIOCM_CD;
763 763
764 dbg("%s() = 0x%08x", __FUNCTION__, result); 764 dbg("%s() = 0x%08x", __func__, result);
765 765
766 return result; 766 return result;
767} 767}
@@ -808,7 +808,7 @@ static int oti6858_ioctl(struct usb_serial_port *port, struct file *file,
808 unsigned int x; 808 unsigned int x;
809 809
810 dbg("%s(port = %d, cmd = 0x%04x, arg = 0x%08lx)", 810 dbg("%s(port = %d, cmd = 0x%04x, arg = 0x%08lx)",
811 __FUNCTION__, port->number, cmd, arg); 811 __func__, port->number, cmd, arg);
812 812
813 switch (cmd) { 813 switch (cmd) {
814 case TIOCMBIS: 814 case TIOCMBIS:
@@ -822,11 +822,11 @@ static int oti6858_ioctl(struct usb_serial_port *port, struct file *file,
822 return oti6858_tiocmset(port, NULL, 0, x); 822 return oti6858_tiocmset(port, NULL, 0, x);
823 823
824 case TIOCMIWAIT: 824 case TIOCMIWAIT:
825 dbg("%s(): TIOCMIWAIT", __FUNCTION__); 825 dbg("%s(): TIOCMIWAIT", __func__);
826 return wait_modem_info(port, arg); 826 return wait_modem_info(port, arg);
827 827
828 default: 828 default:
829 dbg("%s(): 0x%04x not supported", __FUNCTION__, cmd); 829 dbg("%s(): 0x%04x not supported", __func__, cmd);
830 break; 830 break;
831 } 831 }
832 832
@@ -837,10 +837,10 @@ static void oti6858_break_ctl(struct usb_serial_port *port, int break_state)
837{ 837{
838 int state; 838 int state;
839 839
840 dbg("%s(port = %d)", __FUNCTION__, port->number); 840 dbg("%s(port = %d)", __func__, port->number);
841 841
842 state = (break_state == 0) ? 0 : 1; 842 state = (break_state == 0) ? 0 : 1;
843 dbg("%s(): turning break %s", __FUNCTION__, state ? "on" : "off"); 843 dbg("%s(): turning break %s", __func__, state ? "on" : "off");
844 844
845 /* FIXME */ 845 /* FIXME */
846/* 846/*
@@ -848,7 +848,7 @@ static void oti6858_break_ctl(struct usb_serial_port *port, int break_state)
848 BREAK_REQUEST, BREAK_REQUEST_TYPE, state, 848 BREAK_REQUEST, BREAK_REQUEST_TYPE, state,
849 0, NULL, 0, 100); 849 0, NULL, 0, 100);
850 if (result != 0) 850 if (result != 0)
851 dbg("%s(): error sending break", __FUNCTION__); 851 dbg("%s(): error sending break", __func__);
852 */ 852 */
853} 853}
854 854
@@ -857,7 +857,7 @@ static void oti6858_shutdown(struct usb_serial *serial)
857 struct oti6858_private *priv; 857 struct oti6858_private *priv;
858 int i; 858 int i;
859 859
860 dbg("%s()", __FUNCTION__); 860 dbg("%s()", __func__);
861 861
862 for (i = 0; i < serial->num_ports; ++i) { 862 for (i = 0; i < serial->num_ports; ++i) {
863 priv = usb_get_serial_port_data(serial->port[i]); 863 priv = usb_get_serial_port_data(serial->port[i]);
@@ -877,7 +877,7 @@ static void oti6858_read_int_callback(struct urb *urb)
877 int status = urb->status; 877 int status = urb->status;
878 878
879 dbg("%s(port = %d, status = %d)", 879 dbg("%s(port = %d, status = %d)",
880 __FUNCTION__, port->number, status); 880 __func__, port->number, status);
881 881
882 switch (status) { 882 switch (status) {
883 case 0: 883 case 0:
@@ -888,11 +888,11 @@ static void oti6858_read_int_callback(struct urb *urb)
888 case -ESHUTDOWN: 888 case -ESHUTDOWN:
889 /* this urb is terminated, clean up */ 889 /* this urb is terminated, clean up */
890 dbg("%s(): urb shutting down with status: %d", 890 dbg("%s(): urb shutting down with status: %d",
891 __FUNCTION__, status); 891 __func__, status);
892 return; 892 return;
893 default: 893 default:
894 dbg("%s(): nonzero urb status received: %d", 894 dbg("%s(): nonzero urb status received: %d",
895 __FUNCTION__, status); 895 __func__, status);
896 break; 896 break;
897 } 897 }
898 898
@@ -909,7 +909,7 @@ static void oti6858_read_int_callback(struct urb *urb)
909 priv->setup_done = 0; 909 priv->setup_done = 0;
910 resubmit = 0; 910 resubmit = 0;
911 dbg("%s(): scheduling setup_line()", 911 dbg("%s(): scheduling setup_line()",
912 __FUNCTION__); 912 __func__);
913 schedule_delayed_work(&priv->delayed_setup_work, 0); 913 schedule_delayed_work(&priv->delayed_setup_work, 0);
914 } 914 }
915 } 915 }
@@ -924,7 +924,7 @@ static void oti6858_read_int_callback(struct urb *urb)
924 priv->setup_done = 0; 924 priv->setup_done = 0;
925 resubmit = 0; 925 resubmit = 0;
926 dbg("%s(): scheduling setup_line()", 926 dbg("%s(): scheduling setup_line()",
927 __FUNCTION__); 927 __func__);
928 schedule_delayed_work(&priv->delayed_setup_work, 0); 928 schedule_delayed_work(&priv->delayed_setup_work, 0);
929 } 929 }
930 } 930 }
@@ -953,7 +953,7 @@ static void oti6858_read_int_callback(struct urb *urb)
953 if (result != 0) { 953 if (result != 0) {
954 priv->flags.read_urb_in_use = 0; 954 priv->flags.read_urb_in_use = 0;
955 dev_err(&port->dev, "%s(): usb_submit_urb() failed," 955 dev_err(&port->dev, "%s(): usb_submit_urb() failed,"
956 " error %d\n", __FUNCTION__, result); 956 " error %d\n", __func__, result);
957 } else { 957 } else {
958 resubmit = 0; 958 resubmit = 0;
959 } 959 }
@@ -972,13 +972,13 @@ static void oti6858_read_int_callback(struct urb *urb)
972 if (resubmit) { 972 if (resubmit) {
973 int result; 973 int result;
974 974
975// dbg("%s(): submitting interrupt urb", __FUNCTION__); 975// dbg("%s(): submitting interrupt urb", __func__);
976 urb->dev = port->serial->dev; 976 urb->dev = port->serial->dev;
977 result = usb_submit_urb(urb, GFP_ATOMIC); 977 result = usb_submit_urb(urb, GFP_ATOMIC);
978 if (result != 0) { 978 if (result != 0) {
979 dev_err(&urb->dev->dev, 979 dev_err(&urb->dev->dev,
980 "%s(): usb_submit_urb() failed with" 980 "%s(): usb_submit_urb() failed with"
981 " error %d\n", __FUNCTION__, result); 981 " error %d\n", __func__, result);
982 } 982 }
983 } 983 }
984} 984}
@@ -994,7 +994,7 @@ static void oti6858_read_bulk_callback(struct urb *urb)
994 int result; 994 int result;
995 995
996 dbg("%s(port = %d, status = %d)", 996 dbg("%s(port = %d, status = %d)",
997 __FUNCTION__, port->number, status); 997 __func__, port->number, status);
998 998
999 spin_lock_irqsave(&priv->lock, flags); 999 spin_lock_irqsave(&priv->lock, flags);
1000 priv->flags.read_urb_in_use = 0; 1000 priv->flags.read_urb_in_use = 0;
@@ -1002,20 +1002,20 @@ static void oti6858_read_bulk_callback(struct urb *urb)
1002 1002
1003 if (status != 0) { 1003 if (status != 0) {
1004 if (!port->open_count) { 1004 if (!port->open_count) {
1005 dbg("%s(): port is closed, exiting", __FUNCTION__); 1005 dbg("%s(): port is closed, exiting", __func__);
1006 return; 1006 return;
1007 } 1007 }
1008 /* 1008 /*
1009 if (status == -EPROTO) { 1009 if (status == -EPROTO) {
1010 // PL2303 mysteriously fails with -EPROTO reschedule the read 1010 // PL2303 mysteriously fails with -EPROTO reschedule the read
1011 dbg("%s - caught -EPROTO, resubmitting the urb", __FUNCTION__); 1011 dbg("%s - caught -EPROTO, resubmitting the urb", __func__);
1012 result = usb_submit_urb(urb, GFP_ATOMIC); 1012 result = usb_submit_urb(urb, GFP_ATOMIC);
1013 if (result) 1013 if (result)
1014 dev_err(&urb->dev->dev, "%s - failed resubmitting read urb, error %d\n", __FUNCTION__, result); 1014 dev_err(&urb->dev->dev, "%s - failed resubmitting read urb, error %d\n", __func__, result);
1015 return; 1015 return;
1016 } 1016 }
1017 */ 1017 */
1018 dbg("%s(): unable to handle the error, exiting", __FUNCTION__); 1018 dbg("%s(): unable to handle the error, exiting", __func__);
1019 return; 1019 return;
1020 } 1020 }
1021 1021
@@ -1031,7 +1031,7 @@ static void oti6858_read_bulk_callback(struct urb *urb)
1031 result = usb_submit_urb(port->interrupt_in_urb, GFP_ATOMIC); 1031 result = usb_submit_urb(port->interrupt_in_urb, GFP_ATOMIC);
1032 if (result != 0) { 1032 if (result != 0) {
1033 dev_err(&port->dev, "%s(): usb_submit_urb() failed," 1033 dev_err(&port->dev, "%s(): usb_submit_urb() failed,"
1034 " error %d\n", __FUNCTION__, result); 1034 " error %d\n", __func__, result);
1035 } 1035 }
1036 } 1036 }
1037} 1037}
@@ -1044,7 +1044,7 @@ static void oti6858_write_bulk_callback(struct urb *urb)
1044 int result; 1044 int result;
1045 1045
1046 dbg("%s(port = %d, status = %d)", 1046 dbg("%s(port = %d, status = %d)",
1047 __FUNCTION__, port->number, status); 1047 __func__, port->number, status);
1048 1048
1049 switch (status) { 1049 switch (status) {
1050 case 0: 1050 case 0:
@@ -1055,21 +1055,21 @@ static void oti6858_write_bulk_callback(struct urb *urb)
1055 case -ESHUTDOWN: 1055 case -ESHUTDOWN:
1056 /* this urb is terminated, clean up */ 1056 /* this urb is terminated, clean up */
1057 dbg("%s(): urb shutting down with status: %d", 1057 dbg("%s(): urb shutting down with status: %d",
1058 __FUNCTION__, status); 1058 __func__, status);
1059 priv->flags.write_urb_in_use = 0; 1059 priv->flags.write_urb_in_use = 0;
1060 return; 1060 return;
1061 default: 1061 default:
1062 /* error in the urb, so we have to resubmit it */ 1062 /* error in the urb, so we have to resubmit it */
1063 dbg("%s(): nonzero write bulk status received: %d", 1063 dbg("%s(): nonzero write bulk status received: %d",
1064 __FUNCTION__, status); 1064 __func__, status);
1065 dbg("%s(): overflow in write", __FUNCTION__); 1065 dbg("%s(): overflow in write", __func__);
1066 1066
1067 port->write_urb->transfer_buffer_length = 1; 1067 port->write_urb->transfer_buffer_length = 1;
1068 port->write_urb->dev = port->serial->dev; 1068 port->write_urb->dev = port->serial->dev;
1069 result = usb_submit_urb(port->write_urb, GFP_ATOMIC); 1069 result = usb_submit_urb(port->write_urb, GFP_ATOMIC);
1070 if (result) { 1070 if (result) {
1071 dev_err(&port->dev, "%s(): usb_submit_urb() failed," 1071 dev_err(&port->dev, "%s(): usb_submit_urb() failed,"
1072 " error %d\n", __FUNCTION__, result); 1072 " error %d\n", __func__, result);
1073 } else { 1073 } else {
1074 return; 1074 return;
1075 } 1075 }
@@ -1079,11 +1079,11 @@ static void oti6858_write_bulk_callback(struct urb *urb)
1079 1079
1080 // schedule the interrupt urb if we are still open */ 1080 // schedule the interrupt urb if we are still open */
1081 port->interrupt_in_urb->dev = port->serial->dev; 1081 port->interrupt_in_urb->dev = port->serial->dev;
1082 dbg("%s(): submitting interrupt urb", __FUNCTION__); 1082 dbg("%s(): submitting interrupt urb", __func__);
1083 result = usb_submit_urb(port->interrupt_in_urb, GFP_ATOMIC); 1083 result = usb_submit_urb(port->interrupt_in_urb, GFP_ATOMIC);
1084 if (result != 0) { 1084 if (result != 0) {
1085 dev_err(&port->dev, "%s(): failed submitting int urb," 1085 dev_err(&port->dev, "%s(): failed submitting int urb,"
1086 " error %d\n", __FUNCTION__, result); 1086 " error %d\n", __func__, result);
1087 } 1087 }
1088} 1088}
1089 1089