diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-03-03 19:08:34 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-04-25 00:16:55 -0400 |
commit | 441b62c1edb986827154768d89bbac0ba779984f (patch) | |
tree | 13724c22d1b190a36f0ddbba38554e6c66bea6af /drivers/usb/serial/visor.c | |
parent | 14722ef4acedc643f0b78b7165ceff2d300dae4d (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/visor.c')
-rw-r--r-- | drivers/usb/serial/visor.c | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c index f2d59b06c36..137df445e29 100644 --- a/drivers/usb/serial/visor.c +++ b/drivers/usb/serial/visor.c | |||
@@ -281,7 +281,7 @@ static int visor_open (struct usb_serial_port *port, struct file *filp) | |||
281 | unsigned long flags; | 281 | unsigned long flags; |
282 | int result = 0; | 282 | int result = 0; |
283 | 283 | ||
284 | dbg("%s - port %d", __FUNCTION__, port->number); | 284 | dbg("%s - port %d", __func__, port->number); |
285 | 285 | ||
286 | if (!port->read_urb) { | 286 | if (!port->read_urb) { |
287 | /* this is needed for some brain dead Sony devices */ | 287 | /* this is needed for some brain dead Sony devices */ |
@@ -313,16 +313,16 @@ static int visor_open (struct usb_serial_port *port, struct file *filp) | |||
313 | result = usb_submit_urb(port->read_urb, GFP_KERNEL); | 313 | result = usb_submit_urb(port->read_urb, GFP_KERNEL); |
314 | if (result) { | 314 | if (result) { |
315 | dev_err(&port->dev, "%s - failed submitting read urb, error %d\n", | 315 | dev_err(&port->dev, "%s - failed submitting read urb, error %d\n", |
316 | __FUNCTION__, result); | 316 | __func__, result); |
317 | goto exit; | 317 | goto exit; |
318 | } | 318 | } |
319 | 319 | ||
320 | if (port->interrupt_in_urb) { | 320 | if (port->interrupt_in_urb) { |
321 | dbg("%s - adding interrupt input for treo", __FUNCTION__); | 321 | dbg("%s - adding interrupt input for treo", __func__); |
322 | result = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL); | 322 | result = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL); |
323 | if (result) | 323 | if (result) |
324 | dev_err(&port->dev, "%s - failed submitting interrupt urb, error %d\n", | 324 | dev_err(&port->dev, "%s - failed submitting interrupt urb, error %d\n", |
325 | __FUNCTION__, result); | 325 | __func__, result); |
326 | } | 326 | } |
327 | exit: | 327 | exit: |
328 | return result; | 328 | return result; |
@@ -334,7 +334,7 @@ static void visor_close (struct usb_serial_port *port, struct file * filp) | |||
334 | struct visor_private *priv = usb_get_serial_port_data(port); | 334 | struct visor_private *priv = usb_get_serial_port_data(port); |
335 | unsigned char *transfer_buffer; | 335 | unsigned char *transfer_buffer; |
336 | 336 | ||
337 | dbg("%s - port %d", __FUNCTION__, port->number); | 337 | dbg("%s - port %d", __func__, port->number); |
338 | 338 | ||
339 | /* shutdown our urbs */ | 339 | /* shutdown our urbs */ |
340 | usb_kill_urb(port->read_urb); | 340 | usb_kill_urb(port->read_urb); |
@@ -370,12 +370,12 @@ static int visor_write (struct usb_serial_port *port, const unsigned char *buf, | |||
370 | unsigned long flags; | 370 | unsigned long flags; |
371 | int status; | 371 | int status; |
372 | 372 | ||
373 | dbg("%s - port %d", __FUNCTION__, port->number); | 373 | dbg("%s - port %d", __func__, port->number); |
374 | 374 | ||
375 | spin_lock_irqsave(&priv->lock, flags); | 375 | spin_lock_irqsave(&priv->lock, flags); |
376 | if (priv->outstanding_urbs > URB_UPPER_LIMIT) { | 376 | if (priv->outstanding_urbs > URB_UPPER_LIMIT) { |
377 | spin_unlock_irqrestore(&priv->lock, flags); | 377 | spin_unlock_irqrestore(&priv->lock, flags); |
378 | dbg("%s - write limit hit\n", __FUNCTION__); | 378 | dbg("%s - write limit hit\n", __func__); |
379 | return 0; | 379 | return 0; |
380 | } | 380 | } |
381 | priv->outstanding_urbs++; | 381 | priv->outstanding_urbs++; |
@@ -397,7 +397,7 @@ static int visor_write (struct usb_serial_port *port, const unsigned char *buf, | |||
397 | 397 | ||
398 | memcpy (buffer, buf, count); | 398 | memcpy (buffer, buf, count); |
399 | 399 | ||
400 | usb_serial_debug_data(debug, &port->dev, __FUNCTION__, count, buffer); | 400 | usb_serial_debug_data(debug, &port->dev, __func__, count, buffer); |
401 | 401 | ||
402 | usb_fill_bulk_urb (urb, serial->dev, | 402 | usb_fill_bulk_urb (urb, serial->dev, |
403 | usb_sndbulkpipe (serial->dev, | 403 | usb_sndbulkpipe (serial->dev, |
@@ -409,7 +409,7 @@ static int visor_write (struct usb_serial_port *port, const unsigned char *buf, | |||
409 | status = usb_submit_urb(urb, GFP_ATOMIC); | 409 | status = usb_submit_urb(urb, GFP_ATOMIC); |
410 | if (status) { | 410 | if (status) { |
411 | dev_err(&port->dev, "%s - usb_submit_urb(write bulk) failed with status = %d\n", | 411 | dev_err(&port->dev, "%s - usb_submit_urb(write bulk) failed with status = %d\n", |
412 | __FUNCTION__, status); | 412 | __func__, status); |
413 | count = status; | 413 | count = status; |
414 | goto error; | 414 | goto error; |
415 | } else { | 415 | } else { |
@@ -440,7 +440,7 @@ static int visor_write_room (struct usb_serial_port *port) | |||
440 | struct visor_private *priv = usb_get_serial_port_data(port); | 440 | struct visor_private *priv = usb_get_serial_port_data(port); |
441 | unsigned long flags; | 441 | unsigned long flags; |
442 | 442 | ||
443 | dbg("%s - port %d", __FUNCTION__, port->number); | 443 | dbg("%s - port %d", __func__, port->number); |
444 | 444 | ||
445 | /* | 445 | /* |
446 | * We really can take anything the user throws at us | 446 | * We really can take anything the user throws at us |
@@ -451,7 +451,7 @@ static int visor_write_room (struct usb_serial_port *port) | |||
451 | spin_lock_irqsave(&priv->lock, flags); | 451 | spin_lock_irqsave(&priv->lock, flags); |
452 | if (priv->outstanding_urbs > URB_UPPER_LIMIT * 2 / 3) { | 452 | if (priv->outstanding_urbs > URB_UPPER_LIMIT * 2 / 3) { |
453 | spin_unlock_irqrestore(&priv->lock, flags); | 453 | spin_unlock_irqrestore(&priv->lock, flags); |
454 | dbg("%s - write limit hit\n", __FUNCTION__); | 454 | dbg("%s - write limit hit\n", __func__); |
455 | return 0; | 455 | return 0; |
456 | } | 456 | } |
457 | spin_unlock_irqrestore(&priv->lock, flags); | 457 | spin_unlock_irqrestore(&priv->lock, flags); |
@@ -462,7 +462,7 @@ static int visor_write_room (struct usb_serial_port *port) | |||
462 | 462 | ||
463 | static int visor_chars_in_buffer (struct usb_serial_port *port) | 463 | static int visor_chars_in_buffer (struct usb_serial_port *port) |
464 | { | 464 | { |
465 | dbg("%s - port %d", __FUNCTION__, port->number); | 465 | dbg("%s - port %d", __func__, port->number); |
466 | 466 | ||
467 | /* | 467 | /* |
468 | * We can't really account for how much data we | 468 | * We can't really account for how much data we |
@@ -484,11 +484,11 @@ static void visor_write_bulk_callback (struct urb *urb) | |||
484 | /* free up the transfer buffer, as usb_free_urb() does not do this */ | 484 | /* free up the transfer buffer, as usb_free_urb() does not do this */ |
485 | kfree (urb->transfer_buffer); | 485 | kfree (urb->transfer_buffer); |
486 | 486 | ||
487 | dbg("%s - port %d", __FUNCTION__, port->number); | 487 | dbg("%s - port %d", __func__, port->number); |
488 | 488 | ||
489 | if (status) | 489 | if (status) |
490 | dbg("%s - nonzero write bulk status received: %d", | 490 | dbg("%s - nonzero write bulk status received: %d", |
491 | __FUNCTION__, status); | 491 | __func__, status); |
492 | 492 | ||
493 | spin_lock_irqsave(&priv->lock, flags); | 493 | spin_lock_irqsave(&priv->lock, flags); |
494 | --priv->outstanding_urbs; | 494 | --priv->outstanding_urbs; |
@@ -508,15 +508,15 @@ static void visor_read_bulk_callback (struct urb *urb) | |||
508 | int result; | 508 | int result; |
509 | int available_room; | 509 | int available_room; |
510 | 510 | ||
511 | dbg("%s - port %d", __FUNCTION__, port->number); | 511 | dbg("%s - port %d", __func__, port->number); |
512 | 512 | ||
513 | if (status) { | 513 | if (status) { |
514 | dbg("%s - nonzero read bulk status received: %d", | 514 | dbg("%s - nonzero read bulk status received: %d", |
515 | __FUNCTION__, status); | 515 | __func__, status); |
516 | return; | 516 | return; |
517 | } | 517 | } |
518 | 518 | ||
519 | usb_serial_debug_data(debug, &port->dev, __FUNCTION__, urb->actual_length, data); | 519 | usb_serial_debug_data(debug, &port->dev, __func__, urb->actual_length, data); |
520 | 520 | ||
521 | tty = port->tty; | 521 | tty = port->tty; |
522 | if (tty && urb->actual_length) { | 522 | if (tty && urb->actual_length) { |
@@ -542,7 +542,7 @@ static void visor_read_bulk_callback (struct urb *urb) | |||
542 | visor_read_bulk_callback, port); | 542 | visor_read_bulk_callback, port); |
543 | result = usb_submit_urb(port->read_urb, GFP_ATOMIC); | 543 | result = usb_submit_urb(port->read_urb, GFP_ATOMIC); |
544 | if (result) | 544 | if (result) |
545 | dev_err(&port->dev, "%s - failed resubmitting read urb, error %d\n", __FUNCTION__, result); | 545 | dev_err(&port->dev, "%s - failed resubmitting read urb, error %d\n", __func__, result); |
546 | } else { | 546 | } else { |
547 | priv->actually_throttled = 1; | 547 | priv->actually_throttled = 1; |
548 | } | 548 | } |
@@ -564,11 +564,11 @@ static void visor_read_int_callback (struct urb *urb) | |||
564 | case -ESHUTDOWN: | 564 | case -ESHUTDOWN: |
565 | /* this urb is terminated, clean up */ | 565 | /* this urb is terminated, clean up */ |
566 | dbg("%s - urb shutting down with status: %d", | 566 | dbg("%s - urb shutting down with status: %d", |
567 | __FUNCTION__, status); | 567 | __func__, status); |
568 | return; | 568 | return; |
569 | default: | 569 | default: |
570 | dbg("%s - nonzero urb status received: %d", | 570 | dbg("%s - nonzero urb status received: %d", |
571 | __FUNCTION__, status); | 571 | __func__, status); |
572 | goto exit; | 572 | goto exit; |
573 | } | 573 | } |
574 | 574 | ||
@@ -579,14 +579,14 @@ static void visor_read_int_callback (struct urb *urb) | |||
579 | * Rumor has it this endpoint is used to notify when data | 579 | * Rumor has it this endpoint is used to notify when data |
580 | * is ready to be read from the bulk ones. | 580 | * is ready to be read from the bulk ones. |
581 | */ | 581 | */ |
582 | usb_serial_debug_data(debug, &port->dev, __FUNCTION__, | 582 | usb_serial_debug_data(debug, &port->dev, __func__, |
583 | urb->actual_length, urb->transfer_buffer); | 583 | urb->actual_length, urb->transfer_buffer); |
584 | 584 | ||
585 | exit: | 585 | exit: |
586 | result = usb_submit_urb (urb, GFP_ATOMIC); | 586 | result = usb_submit_urb (urb, GFP_ATOMIC); |
587 | if (result) | 587 | if (result) |
588 | dev_err(&urb->dev->dev, "%s - Error %d submitting interrupt urb\n", | 588 | dev_err(&urb->dev->dev, "%s - Error %d submitting interrupt urb\n", |
589 | __FUNCTION__, result); | 589 | __func__, result); |
590 | } | 590 | } |
591 | 591 | ||
592 | static void visor_throttle (struct usb_serial_port *port) | 592 | static void visor_throttle (struct usb_serial_port *port) |
@@ -594,7 +594,7 @@ static void visor_throttle (struct usb_serial_port *port) | |||
594 | struct visor_private *priv = usb_get_serial_port_data(port); | 594 | struct visor_private *priv = usb_get_serial_port_data(port); |
595 | unsigned long flags; | 595 | unsigned long flags; |
596 | 596 | ||
597 | dbg("%s - port %d", __FUNCTION__, port->number); | 597 | dbg("%s - port %d", __func__, port->number); |
598 | spin_lock_irqsave(&priv->lock, flags); | 598 | spin_lock_irqsave(&priv->lock, flags); |
599 | priv->throttled = 1; | 599 | priv->throttled = 1; |
600 | spin_unlock_irqrestore(&priv->lock, flags); | 600 | spin_unlock_irqrestore(&priv->lock, flags); |
@@ -607,7 +607,7 @@ static void visor_unthrottle (struct usb_serial_port *port) | |||
607 | unsigned long flags; | 607 | unsigned long flags; |
608 | int result; | 608 | int result; |
609 | 609 | ||
610 | dbg("%s - port %d", __FUNCTION__, port->number); | 610 | dbg("%s - port %d", __func__, port->number); |
611 | spin_lock_irqsave(&priv->lock, flags); | 611 | spin_lock_irqsave(&priv->lock, flags); |
612 | priv->throttled = 0; | 612 | priv->throttled = 0; |
613 | priv->actually_throttled = 0; | 613 | priv->actually_throttled = 0; |
@@ -616,7 +616,7 @@ static void visor_unthrottle (struct usb_serial_port *port) | |||
616 | port->read_urb->dev = port->serial->dev; | 616 | port->read_urb->dev = port->serial->dev; |
617 | result = usb_submit_urb(port->read_urb, GFP_ATOMIC); | 617 | result = usb_submit_urb(port->read_urb, GFP_ATOMIC); |
618 | if (result) | 618 | if (result) |
619 | dev_err(&port->dev, "%s - failed submitting read urb, error %d\n", __FUNCTION__, result); | 619 | dev_err(&port->dev, "%s - failed submitting read urb, error %d\n", __func__, result); |
620 | } | 620 | } |
621 | 621 | ||
622 | static int palm_os_3_probe (struct usb_serial *serial, const struct usb_device_id *id) | 622 | static int palm_os_3_probe (struct usb_serial *serial, const struct usb_device_id *id) |
@@ -629,11 +629,11 @@ static int palm_os_3_probe (struct usb_serial *serial, const struct usb_device_i | |||
629 | int i; | 629 | int i; |
630 | int num_ports = 0; | 630 | int num_ports = 0; |
631 | 631 | ||
632 | dbg("%s", __FUNCTION__); | 632 | dbg("%s", __func__); |
633 | 633 | ||
634 | transfer_buffer = kmalloc (sizeof (*connection_info), GFP_KERNEL); | 634 | transfer_buffer = kmalloc (sizeof (*connection_info), GFP_KERNEL); |
635 | if (!transfer_buffer) { | 635 | if (!transfer_buffer) { |
636 | dev_err(dev, "%s - kmalloc(%Zd) failed.\n", __FUNCTION__, | 636 | dev_err(dev, "%s - kmalloc(%Zd) failed.\n", __func__, |
637 | sizeof(*connection_info)); | 637 | sizeof(*connection_info)); |
638 | return -ENOMEM; | 638 | return -ENOMEM; |
639 | } | 639 | } |
@@ -646,7 +646,7 @@ static int palm_os_3_probe (struct usb_serial *serial, const struct usb_device_i | |||
646 | sizeof(*connection_info), 300); | 646 | sizeof(*connection_info), 300); |
647 | if (retval < 0) { | 647 | if (retval < 0) { |
648 | dev_err(dev, "%s - error %d getting connection information\n", | 648 | dev_err(dev, "%s - error %d getting connection information\n", |
649 | __FUNCTION__, retval); | 649 | __func__, retval); |
650 | goto exit; | 650 | goto exit; |
651 | } | 651 | } |
652 | 652 | ||
@@ -706,7 +706,7 @@ static int palm_os_3_probe (struct usb_serial *serial, const struct usb_device_i | |||
706 | 0x02, 300); | 706 | 0x02, 300); |
707 | if (retval < 0) | 707 | if (retval < 0) |
708 | dev_err(dev, "%s - error %d getting bytes available request\n", | 708 | dev_err(dev, "%s - error %d getting bytes available request\n", |
709 | __FUNCTION__, retval); | 709 | __func__, retval); |
710 | retval = 0; | 710 | retval = 0; |
711 | 711 | ||
712 | exit: | 712 | exit: |
@@ -722,11 +722,11 @@ static int palm_os_4_probe (struct usb_serial *serial, const struct usb_device_i | |||
722 | unsigned char *transfer_buffer; | 722 | unsigned char *transfer_buffer; |
723 | int retval; | 723 | int retval; |
724 | 724 | ||
725 | dbg("%s", __FUNCTION__); | 725 | dbg("%s", __func__); |
726 | 726 | ||
727 | transfer_buffer = kmalloc (sizeof (*connection_info), GFP_KERNEL); | 727 | transfer_buffer = kmalloc (sizeof (*connection_info), GFP_KERNEL); |
728 | if (!transfer_buffer) { | 728 | if (!transfer_buffer) { |
729 | dev_err(dev, "%s - kmalloc(%Zd) failed.\n", __FUNCTION__, | 729 | dev_err(dev, "%s - kmalloc(%Zd) failed.\n", __func__, |
730 | sizeof(*connection_info)); | 730 | sizeof(*connection_info)); |
731 | return -ENOMEM; | 731 | return -ENOMEM; |
732 | } | 732 | } |
@@ -738,9 +738,9 @@ static int palm_os_4_probe (struct usb_serial *serial, const struct usb_device_i | |||
738 | sizeof (*connection_info), 300); | 738 | sizeof (*connection_info), 300); |
739 | if (retval < 0) | 739 | if (retval < 0) |
740 | dev_err(dev, "%s - error %d getting connection info\n", | 740 | dev_err(dev, "%s - error %d getting connection info\n", |
741 | __FUNCTION__, retval); | 741 | __func__, retval); |
742 | else | 742 | else |
743 | usb_serial_debug_data(debug, &serial->dev->dev, __FUNCTION__, | 743 | usb_serial_debug_data(debug, &serial->dev->dev, __func__, |
744 | retval, transfer_buffer); | 744 | retval, transfer_buffer); |
745 | 745 | ||
746 | kfree (transfer_buffer); | 746 | kfree (transfer_buffer); |
@@ -753,7 +753,7 @@ static int visor_probe (struct usb_serial *serial, const struct usb_device_id *i | |||
753 | int retval = 0; | 753 | int retval = 0; |
754 | int (*startup) (struct usb_serial *serial, const struct usb_device_id *id); | 754 | int (*startup) (struct usb_serial *serial, const struct usb_device_id *id); |
755 | 755 | ||
756 | dbg("%s", __FUNCTION__); | 756 | dbg("%s", __func__); |
757 | 757 | ||
758 | if (serial->dev->actconfig->desc.bConfigurationValue != 1) { | 758 | if (serial->dev->actconfig->desc.bConfigurationValue != 1) { |
759 | err("active config #%d != 1 ??", | 759 | err("active config #%d != 1 ??", |
@@ -807,7 +807,7 @@ static int clie_3_5_startup (struct usb_serial *serial) | |||
807 | int result; | 807 | int result; |
808 | u8 data; | 808 | u8 data; |
809 | 809 | ||
810 | dbg("%s", __FUNCTION__); | 810 | dbg("%s", __func__); |
811 | 811 | ||
812 | /* | 812 | /* |
813 | * Note that PEG-300 series devices expect the following two calls. | 813 | * Note that PEG-300 series devices expect the following two calls. |
@@ -818,11 +818,11 @@ static int clie_3_5_startup (struct usb_serial *serial) | |||
818 | USB_REQ_GET_CONFIGURATION, USB_DIR_IN, | 818 | USB_REQ_GET_CONFIGURATION, USB_DIR_IN, |
819 | 0, 0, &data, 1, 3000); | 819 | 0, 0, &data, 1, 3000); |
820 | if (result < 0) { | 820 | if (result < 0) { |
821 | dev_err(dev, "%s: get config number failed: %d\n", __FUNCTION__, result); | 821 | dev_err(dev, "%s: get config number failed: %d\n", __func__, result); |
822 | return result; | 822 | return result; |
823 | } | 823 | } |
824 | if (result != 1) { | 824 | if (result != 1) { |
825 | dev_err(dev, "%s: get config number bad return length: %d\n", __FUNCTION__, result); | 825 | dev_err(dev, "%s: get config number bad return length: %d\n", __func__, result); |
826 | return -EIO; | 826 | return -EIO; |
827 | } | 827 | } |
828 | 828 | ||
@@ -832,11 +832,11 @@ static int clie_3_5_startup (struct usb_serial *serial) | |||
832 | USB_DIR_IN | USB_RECIP_INTERFACE, | 832 | USB_DIR_IN | USB_RECIP_INTERFACE, |
833 | 0, 0, &data, 1, 3000); | 833 | 0, 0, &data, 1, 3000); |
834 | if (result < 0) { | 834 | if (result < 0) { |
835 | dev_err(dev, "%s: get interface number failed: %d\n", __FUNCTION__, result); | 835 | dev_err(dev, "%s: get interface number failed: %d\n", __func__, result); |
836 | return result; | 836 | return result; |
837 | } | 837 | } |
838 | if (result != 1) { | 838 | if (result != 1) { |
839 | dev_err(dev, "%s: get interface number bad return length: %d\n", __FUNCTION__, result); | 839 | dev_err(dev, "%s: get interface number bad return length: %d\n", __func__, result); |
840 | return -EIO; | 840 | return -EIO; |
841 | } | 841 | } |
842 | 842 | ||
@@ -854,7 +854,7 @@ static int treo_attach (struct usb_serial *serial) | |||
854 | (serial->num_interrupt_in == 0)) | 854 | (serial->num_interrupt_in == 0)) |
855 | goto generic_startup; | 855 | goto generic_startup; |
856 | 856 | ||
857 | dbg("%s", __FUNCTION__); | 857 | dbg("%s", __func__); |
858 | 858 | ||
859 | /* | 859 | /* |
860 | * It appears that Treos and Kyoceras want to use the | 860 | * It appears that Treos and Kyoceras want to use the |
@@ -885,7 +885,7 @@ generic_startup: | |||
885 | 885 | ||
886 | static int clie_5_attach (struct usb_serial *serial) | 886 | static int clie_5_attach (struct usb_serial *serial) |
887 | { | 887 | { |
888 | dbg("%s", __FUNCTION__); | 888 | dbg("%s", __func__); |
889 | 889 | ||
890 | /* TH55 registers 2 ports. | 890 | /* TH55 registers 2 ports. |
891 | Communication in from the UX50/TH55 uses bulk_in_endpointAddress from port 0 | 891 | Communication in from the UX50/TH55 uses bulk_in_endpointAddress from port 0 |
@@ -909,7 +909,7 @@ static void visor_shutdown (struct usb_serial *serial) | |||
909 | struct visor_private *priv; | 909 | struct visor_private *priv; |
910 | int i; | 910 | int i; |
911 | 911 | ||
912 | dbg("%s", __FUNCTION__); | 912 | dbg("%s", __func__); |
913 | 913 | ||
914 | for (i = 0; i < serial->num_ports; i++) { | 914 | for (i = 0; i < serial->num_ports; i++) { |
915 | priv = usb_get_serial_port_data(serial->port[i]); | 915 | priv = usb_get_serial_port_data(serial->port[i]); |
@@ -922,7 +922,7 @@ static void visor_shutdown (struct usb_serial *serial) | |||
922 | 922 | ||
923 | static int visor_ioctl (struct usb_serial_port *port, struct file * file, unsigned int cmd, unsigned long arg) | 923 | static int visor_ioctl (struct usb_serial_port *port, struct file * file, unsigned int cmd, unsigned long arg) |
924 | { | 924 | { |
925 | dbg("%s - port %d, cmd 0x%.4x", __FUNCTION__, port->number, cmd); | 925 | dbg("%s - port %d, cmd 0x%.4x", __func__, port->number, cmd); |
926 | 926 | ||
927 | return -ENOIOCTLCMD; | 927 | return -ENOIOCTLCMD; |
928 | } | 928 | } |