aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/visor.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/serial/visor.c')
-rw-r--r--drivers/usb/serial/visor.c103
1 files changed, 48 insertions, 55 deletions
diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c
index c2b01f7c3197..5fc20122145f 100644
--- a/drivers/usb/serial/visor.c
+++ b/drivers/usb/serial/visor.c
@@ -189,9 +189,6 @@ static struct usb_serial_driver handspring_device = {
189 .description = "Handspring Visor / Palm OS", 189 .description = "Handspring Visor / Palm OS",
190 .usb_driver = &visor_driver, 190 .usb_driver = &visor_driver,
191 .id_table = id_table, 191 .id_table = id_table,
192 .num_interrupt_in = NUM_DONT_CARE,
193 .num_bulk_in = 2,
194 .num_bulk_out = NUM_DONT_CARE,
195 .num_ports = 2, 192 .num_ports = 2,
196 .open = visor_open, 193 .open = visor_open,
197 .close = visor_close, 194 .close = visor_close,
@@ -219,9 +216,6 @@ static struct usb_serial_driver clie_5_device = {
219 .description = "Sony Clie 5.0", 216 .description = "Sony Clie 5.0",
220 .usb_driver = &visor_driver, 217 .usb_driver = &visor_driver,
221 .id_table = clie_id_5_table, 218 .id_table = clie_id_5_table,
222 .num_interrupt_in = NUM_DONT_CARE,
223 .num_bulk_in = 2,
224 .num_bulk_out = 2,
225 .num_ports = 2, 219 .num_ports = 2,
226 .open = visor_open, 220 .open = visor_open,
227 .close = visor_close, 221 .close = visor_close,
@@ -249,9 +243,6 @@ static struct usb_serial_driver clie_3_5_device = {
249 .description = "Sony Clie 3.5", 243 .description = "Sony Clie 3.5",
250 .usb_driver = &visor_driver, 244 .usb_driver = &visor_driver,
251 .id_table = clie_id_3_5_table, 245 .id_table = clie_id_3_5_table,
252 .num_interrupt_in = 0,
253 .num_bulk_in = 1,
254 .num_bulk_out = 1,
255 .num_ports = 1, 246 .num_ports = 1,
256 .open = visor_open, 247 .open = visor_open,
257 .close = visor_close, 248 .close = visor_close,
@@ -290,7 +281,7 @@ static int visor_open (struct usb_serial_port *port, struct file *filp)
290 unsigned long flags; 281 unsigned long flags;
291 int result = 0; 282 int result = 0;
292 283
293 dbg("%s - port %d", __FUNCTION__, port->number); 284 dbg("%s - port %d", __func__, port->number);
294 285
295 if (!port->read_urb) { 286 if (!port->read_urb) {
296 /* this is needed for some brain dead Sony devices */ 287 /* this is needed for some brain dead Sony devices */
@@ -322,16 +313,16 @@ static int visor_open (struct usb_serial_port *port, struct file *filp)
322 result = usb_submit_urb(port->read_urb, GFP_KERNEL); 313 result = usb_submit_urb(port->read_urb, GFP_KERNEL);
323 if (result) { 314 if (result) {
324 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",
325 __FUNCTION__, result); 316 __func__, result);
326 goto exit; 317 goto exit;
327 } 318 }
328 319
329 if (port->interrupt_in_urb) { 320 if (port->interrupt_in_urb) {
330 dbg("%s - adding interrupt input for treo", __FUNCTION__); 321 dbg("%s - adding interrupt input for treo", __func__);
331 result = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL); 322 result = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL);
332 if (result) 323 if (result)
333 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",
334 __FUNCTION__, result); 325 __func__, result);
335 } 326 }
336exit: 327exit:
337 return result; 328 return result;
@@ -343,7 +334,7 @@ static void visor_close (struct usb_serial_port *port, struct file * filp)
343 struct visor_private *priv = usb_get_serial_port_data(port); 334 struct visor_private *priv = usb_get_serial_port_data(port);
344 unsigned char *transfer_buffer; 335 unsigned char *transfer_buffer;
345 336
346 dbg("%s - port %d", __FUNCTION__, port->number); 337 dbg("%s - port %d", __func__, port->number);
347 338
348 /* shutdown our urbs */ 339 /* shutdown our urbs */
349 usb_kill_urb(port->read_urb); 340 usb_kill_urb(port->read_urb);
@@ -379,12 +370,12 @@ static int visor_write (struct usb_serial_port *port, const unsigned char *buf,
379 unsigned long flags; 370 unsigned long flags;
380 int status; 371 int status;
381 372
382 dbg("%s - port %d", __FUNCTION__, port->number); 373 dbg("%s - port %d", __func__, port->number);
383 374
384 spin_lock_irqsave(&priv->lock, flags); 375 spin_lock_irqsave(&priv->lock, flags);
385 if (priv->outstanding_urbs > URB_UPPER_LIMIT) { 376 if (priv->outstanding_urbs > URB_UPPER_LIMIT) {
386 spin_unlock_irqrestore(&priv->lock, flags); 377 spin_unlock_irqrestore(&priv->lock, flags);
387 dbg("%s - write limit hit\n", __FUNCTION__); 378 dbg("%s - write limit hit\n", __func__);
388 return 0; 379 return 0;
389 } 380 }
390 priv->outstanding_urbs++; 381 priv->outstanding_urbs++;
@@ -406,7 +397,7 @@ static int visor_write (struct usb_serial_port *port, const unsigned char *buf,
406 397
407 memcpy (buffer, buf, count); 398 memcpy (buffer, buf, count);
408 399
409 usb_serial_debug_data(debug, &port->dev, __FUNCTION__, count, buffer); 400 usb_serial_debug_data(debug, &port->dev, __func__, count, buffer);
410 401
411 usb_fill_bulk_urb (urb, serial->dev, 402 usb_fill_bulk_urb (urb, serial->dev,
412 usb_sndbulkpipe (serial->dev, 403 usb_sndbulkpipe (serial->dev,
@@ -418,7 +409,7 @@ static int visor_write (struct usb_serial_port *port, const unsigned char *buf,
418 status = usb_submit_urb(urb, GFP_ATOMIC); 409 status = usb_submit_urb(urb, GFP_ATOMIC);
419 if (status) { 410 if (status) {
420 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",
421 __FUNCTION__, status); 412 __func__, status);
422 count = status; 413 count = status;
423 goto error; 414 goto error;
424 } else { 415 } else {
@@ -449,7 +440,7 @@ static int visor_write_room (struct usb_serial_port *port)
449 struct visor_private *priv = usb_get_serial_port_data(port); 440 struct visor_private *priv = usb_get_serial_port_data(port);
450 unsigned long flags; 441 unsigned long flags;
451 442
452 dbg("%s - port %d", __FUNCTION__, port->number); 443 dbg("%s - port %d", __func__, port->number);
453 444
454 /* 445 /*
455 * We really can take anything the user throws at us 446 * We really can take anything the user throws at us
@@ -460,7 +451,7 @@ static int visor_write_room (struct usb_serial_port *port)
460 spin_lock_irqsave(&priv->lock, flags); 451 spin_lock_irqsave(&priv->lock, flags);
461 if (priv->outstanding_urbs > URB_UPPER_LIMIT * 2 / 3) { 452 if (priv->outstanding_urbs > URB_UPPER_LIMIT * 2 / 3) {
462 spin_unlock_irqrestore(&priv->lock, flags); 453 spin_unlock_irqrestore(&priv->lock, flags);
463 dbg("%s - write limit hit\n", __FUNCTION__); 454 dbg("%s - write limit hit\n", __func__);
464 return 0; 455 return 0;
465 } 456 }
466 spin_unlock_irqrestore(&priv->lock, flags); 457 spin_unlock_irqrestore(&priv->lock, flags);
@@ -471,13 +462,15 @@ static int visor_write_room (struct usb_serial_port *port)
471 462
472static int visor_chars_in_buffer (struct usb_serial_port *port) 463static int visor_chars_in_buffer (struct usb_serial_port *port)
473{ 464{
474 dbg("%s - port %d", __FUNCTION__, port->number); 465 dbg("%s - port %d", __func__, port->number);
475 466
476 /* 467 /*
477 * We can't really account for how much data we 468 * We can't really account for how much data we
478 * have sent out, but hasn't made it through to the 469 * have sent out, but hasn't made it through to the
479 * device, so just tell the tty layer that everything 470 * device, so just tell the tty layer that everything
480 * is flushed. 471 * is flushed.
472 *
473 * FIXME: Should walk outstanding_urbs
481 */ 474 */
482 return 0; 475 return 0;
483} 476}
@@ -485,7 +478,7 @@ static int visor_chars_in_buffer (struct usb_serial_port *port)
485 478
486static void visor_write_bulk_callback (struct urb *urb) 479static void visor_write_bulk_callback (struct urb *urb)
487{ 480{
488 struct usb_serial_port *port = (struct usb_serial_port *)urb->context; 481 struct usb_serial_port *port = urb->context;
489 struct visor_private *priv = usb_get_serial_port_data(port); 482 struct visor_private *priv = usb_get_serial_port_data(port);
490 int status = urb->status; 483 int status = urb->status;
491 unsigned long flags; 484 unsigned long flags;
@@ -493,11 +486,11 @@ static void visor_write_bulk_callback (struct urb *urb)
493 /* free up the transfer buffer, as usb_free_urb() does not do this */ 486 /* free up the transfer buffer, as usb_free_urb() does not do this */
494 kfree (urb->transfer_buffer); 487 kfree (urb->transfer_buffer);
495 488
496 dbg("%s - port %d", __FUNCTION__, port->number); 489 dbg("%s - port %d", __func__, port->number);
497 490
498 if (status) 491 if (status)
499 dbg("%s - nonzero write bulk status received: %d", 492 dbg("%s - nonzero write bulk status received: %d",
500 __FUNCTION__, status); 493 __func__, status);
501 494
502 spin_lock_irqsave(&priv->lock, flags); 495 spin_lock_irqsave(&priv->lock, flags);
503 --priv->outstanding_urbs; 496 --priv->outstanding_urbs;
@@ -509,7 +502,7 @@ static void visor_write_bulk_callback (struct urb *urb)
509 502
510static void visor_read_bulk_callback (struct urb *urb) 503static void visor_read_bulk_callback (struct urb *urb)
511{ 504{
512 struct usb_serial_port *port = (struct usb_serial_port *)urb->context; 505 struct usb_serial_port *port = urb->context;
513 struct visor_private *priv = usb_get_serial_port_data(port); 506 struct visor_private *priv = usb_get_serial_port_data(port);
514 unsigned char *data = urb->transfer_buffer; 507 unsigned char *data = urb->transfer_buffer;
515 int status = urb->status; 508 int status = urb->status;
@@ -517,15 +510,15 @@ static void visor_read_bulk_callback (struct urb *urb)
517 int result; 510 int result;
518 int available_room; 511 int available_room;
519 512
520 dbg("%s - port %d", __FUNCTION__, port->number); 513 dbg("%s - port %d", __func__, port->number);
521 514
522 if (status) { 515 if (status) {
523 dbg("%s - nonzero read bulk status received: %d", 516 dbg("%s - nonzero read bulk status received: %d",
524 __FUNCTION__, status); 517 __func__, status);
525 return; 518 return;
526 } 519 }
527 520
528 usb_serial_debug_data(debug, &port->dev, __FUNCTION__, urb->actual_length, data); 521 usb_serial_debug_data(debug, &port->dev, __func__, urb->actual_length, data);
529 522
530 tty = port->tty; 523 tty = port->tty;
531 if (tty && urb->actual_length) { 524 if (tty && urb->actual_length) {
@@ -551,7 +544,7 @@ static void visor_read_bulk_callback (struct urb *urb)
551 visor_read_bulk_callback, port); 544 visor_read_bulk_callback, port);
552 result = usb_submit_urb(port->read_urb, GFP_ATOMIC); 545 result = usb_submit_urb(port->read_urb, GFP_ATOMIC);
553 if (result) 546 if (result)
554 dev_err(&port->dev, "%s - failed resubmitting read urb, error %d\n", __FUNCTION__, result); 547 dev_err(&port->dev, "%s - failed resubmitting read urb, error %d\n", __func__, result);
555 } else { 548 } else {
556 priv->actually_throttled = 1; 549 priv->actually_throttled = 1;
557 } 550 }
@@ -560,7 +553,7 @@ static void visor_read_bulk_callback (struct urb *urb)
560 553
561static void visor_read_int_callback (struct urb *urb) 554static void visor_read_int_callback (struct urb *urb)
562{ 555{
563 struct usb_serial_port *port = (struct usb_serial_port *)urb->context; 556 struct usb_serial_port *port = urb->context;
564 int status = urb->status; 557 int status = urb->status;
565 int result; 558 int result;
566 559
@@ -573,11 +566,11 @@ static void visor_read_int_callback (struct urb *urb)
573 case -ESHUTDOWN: 566 case -ESHUTDOWN:
574 /* this urb is terminated, clean up */ 567 /* this urb is terminated, clean up */
575 dbg("%s - urb shutting down with status: %d", 568 dbg("%s - urb shutting down with status: %d",
576 __FUNCTION__, status); 569 __func__, status);
577 return; 570 return;
578 default: 571 default:
579 dbg("%s - nonzero urb status received: %d", 572 dbg("%s - nonzero urb status received: %d",
580 __FUNCTION__, status); 573 __func__, status);
581 goto exit; 574 goto exit;
582 } 575 }
583 576
@@ -588,14 +581,14 @@ static void visor_read_int_callback (struct urb *urb)
588 * Rumor has it this endpoint is used to notify when data 581 * Rumor has it this endpoint is used to notify when data
589 * is ready to be read from the bulk ones. 582 * is ready to be read from the bulk ones.
590 */ 583 */
591 usb_serial_debug_data(debug, &port->dev, __FUNCTION__, 584 usb_serial_debug_data(debug, &port->dev, __func__,
592 urb->actual_length, urb->transfer_buffer); 585 urb->actual_length, urb->transfer_buffer);
593 586
594exit: 587exit:
595 result = usb_submit_urb (urb, GFP_ATOMIC); 588 result = usb_submit_urb (urb, GFP_ATOMIC);
596 if (result) 589 if (result)
597 dev_err(&urb->dev->dev, "%s - Error %d submitting interrupt urb\n", 590 dev_err(&urb->dev->dev, "%s - Error %d submitting interrupt urb\n",
598 __FUNCTION__, result); 591 __func__, result);
599} 592}
600 593
601static void visor_throttle (struct usb_serial_port *port) 594static void visor_throttle (struct usb_serial_port *port)
@@ -603,7 +596,7 @@ static void visor_throttle (struct usb_serial_port *port)
603 struct visor_private *priv = usb_get_serial_port_data(port); 596 struct visor_private *priv = usb_get_serial_port_data(port);
604 unsigned long flags; 597 unsigned long flags;
605 598
606 dbg("%s - port %d", __FUNCTION__, port->number); 599 dbg("%s - port %d", __func__, port->number);
607 spin_lock_irqsave(&priv->lock, flags); 600 spin_lock_irqsave(&priv->lock, flags);
608 priv->throttled = 1; 601 priv->throttled = 1;
609 spin_unlock_irqrestore(&priv->lock, flags); 602 spin_unlock_irqrestore(&priv->lock, flags);
@@ -616,7 +609,7 @@ static void visor_unthrottle (struct usb_serial_port *port)
616 unsigned long flags; 609 unsigned long flags;
617 int result; 610 int result;
618 611
619 dbg("%s - port %d", __FUNCTION__, port->number); 612 dbg("%s - port %d", __func__, port->number);
620 spin_lock_irqsave(&priv->lock, flags); 613 spin_lock_irqsave(&priv->lock, flags);
621 priv->throttled = 0; 614 priv->throttled = 0;
622 priv->actually_throttled = 0; 615 priv->actually_throttled = 0;
@@ -625,7 +618,7 @@ static void visor_unthrottle (struct usb_serial_port *port)
625 port->read_urb->dev = port->serial->dev; 618 port->read_urb->dev = port->serial->dev;
626 result = usb_submit_urb(port->read_urb, GFP_ATOMIC); 619 result = usb_submit_urb(port->read_urb, GFP_ATOMIC);
627 if (result) 620 if (result)
628 dev_err(&port->dev, "%s - failed submitting read urb, error %d\n", __FUNCTION__, result); 621 dev_err(&port->dev, "%s - failed submitting read urb, error %d\n", __func__, result);
629} 622}
630 623
631static int palm_os_3_probe (struct usb_serial *serial, const struct usb_device_id *id) 624static int palm_os_3_probe (struct usb_serial *serial, const struct usb_device_id *id)
@@ -638,11 +631,11 @@ static int palm_os_3_probe (struct usb_serial *serial, const struct usb_device_i
638 int i; 631 int i;
639 int num_ports = 0; 632 int num_ports = 0;
640 633
641 dbg("%s", __FUNCTION__); 634 dbg("%s", __func__);
642 635
643 transfer_buffer = kmalloc (sizeof (*connection_info), GFP_KERNEL); 636 transfer_buffer = kmalloc (sizeof (*connection_info), GFP_KERNEL);
644 if (!transfer_buffer) { 637 if (!transfer_buffer) {
645 dev_err(dev, "%s - kmalloc(%Zd) failed.\n", __FUNCTION__, 638 dev_err(dev, "%s - kmalloc(%Zd) failed.\n", __func__,
646 sizeof(*connection_info)); 639 sizeof(*connection_info));
647 return -ENOMEM; 640 return -ENOMEM;
648 } 641 }
@@ -655,7 +648,7 @@ static int palm_os_3_probe (struct usb_serial *serial, const struct usb_device_i
655 sizeof(*connection_info), 300); 648 sizeof(*connection_info), 300);
656 if (retval < 0) { 649 if (retval < 0) {
657 dev_err(dev, "%s - error %d getting connection information\n", 650 dev_err(dev, "%s - error %d getting connection information\n",
658 __FUNCTION__, retval); 651 __func__, retval);
659 goto exit; 652 goto exit;
660 } 653 }
661 654
@@ -715,7 +708,7 @@ static int palm_os_3_probe (struct usb_serial *serial, const struct usb_device_i
715 0x02, 300); 708 0x02, 300);
716 if (retval < 0) 709 if (retval < 0)
717 dev_err(dev, "%s - error %d getting bytes available request\n", 710 dev_err(dev, "%s - error %d getting bytes available request\n",
718 __FUNCTION__, retval); 711 __func__, retval);
719 retval = 0; 712 retval = 0;
720 713
721exit: 714exit:
@@ -731,11 +724,11 @@ static int palm_os_4_probe (struct usb_serial *serial, const struct usb_device_i
731 unsigned char *transfer_buffer; 724 unsigned char *transfer_buffer;
732 int retval; 725 int retval;
733 726
734 dbg("%s", __FUNCTION__); 727 dbg("%s", __func__);
735 728
736 transfer_buffer = kmalloc (sizeof (*connection_info), GFP_KERNEL); 729 transfer_buffer = kmalloc (sizeof (*connection_info), GFP_KERNEL);
737 if (!transfer_buffer) { 730 if (!transfer_buffer) {
738 dev_err(dev, "%s - kmalloc(%Zd) failed.\n", __FUNCTION__, 731 dev_err(dev, "%s - kmalloc(%Zd) failed.\n", __func__,
739 sizeof(*connection_info)); 732 sizeof(*connection_info));
740 return -ENOMEM; 733 return -ENOMEM;
741 } 734 }
@@ -747,9 +740,9 @@ static int palm_os_4_probe (struct usb_serial *serial, const struct usb_device_i
747 sizeof (*connection_info), 300); 740 sizeof (*connection_info), 300);
748 if (retval < 0) 741 if (retval < 0)
749 dev_err(dev, "%s - error %d getting connection info\n", 742 dev_err(dev, "%s - error %d getting connection info\n",
750 __FUNCTION__, retval); 743 __func__, retval);
751 else 744 else
752 usb_serial_debug_data(debug, &serial->dev->dev, __FUNCTION__, 745 usb_serial_debug_data(debug, &serial->dev->dev, __func__,
753 retval, transfer_buffer); 746 retval, transfer_buffer);
754 747
755 kfree (transfer_buffer); 748 kfree (transfer_buffer);
@@ -762,7 +755,7 @@ static int visor_probe (struct usb_serial *serial, const struct usb_device_id *i
762 int retval = 0; 755 int retval = 0;
763 int (*startup) (struct usb_serial *serial, const struct usb_device_id *id); 756 int (*startup) (struct usb_serial *serial, const struct usb_device_id *id);
764 757
765 dbg("%s", __FUNCTION__); 758 dbg("%s", __func__);
766 759
767 if (serial->dev->actconfig->desc.bConfigurationValue != 1) { 760 if (serial->dev->actconfig->desc.bConfigurationValue != 1) {
768 err("active config #%d != 1 ??", 761 err("active config #%d != 1 ??",
@@ -816,7 +809,7 @@ static int clie_3_5_startup (struct usb_serial *serial)
816 int result; 809 int result;
817 u8 data; 810 u8 data;
818 811
819 dbg("%s", __FUNCTION__); 812 dbg("%s", __func__);
820 813
821 /* 814 /*
822 * Note that PEG-300 series devices expect the following two calls. 815 * Note that PEG-300 series devices expect the following two calls.
@@ -827,11 +820,11 @@ static int clie_3_5_startup (struct usb_serial *serial)
827 USB_REQ_GET_CONFIGURATION, USB_DIR_IN, 820 USB_REQ_GET_CONFIGURATION, USB_DIR_IN,
828 0, 0, &data, 1, 3000); 821 0, 0, &data, 1, 3000);
829 if (result < 0) { 822 if (result < 0) {
830 dev_err(dev, "%s: get config number failed: %d\n", __FUNCTION__, result); 823 dev_err(dev, "%s: get config number failed: %d\n", __func__, result);
831 return result; 824 return result;
832 } 825 }
833 if (result != 1) { 826 if (result != 1) {
834 dev_err(dev, "%s: get config number bad return length: %d\n", __FUNCTION__, result); 827 dev_err(dev, "%s: get config number bad return length: %d\n", __func__, result);
835 return -EIO; 828 return -EIO;
836 } 829 }
837 830
@@ -841,11 +834,11 @@ static int clie_3_5_startup (struct usb_serial *serial)
841 USB_DIR_IN | USB_RECIP_INTERFACE, 834 USB_DIR_IN | USB_RECIP_INTERFACE,
842 0, 0, &data, 1, 3000); 835 0, 0, &data, 1, 3000);
843 if (result < 0) { 836 if (result < 0) {
844 dev_err(dev, "%s: get interface number failed: %d\n", __FUNCTION__, result); 837 dev_err(dev, "%s: get interface number failed: %d\n", __func__, result);
845 return result; 838 return result;
846 } 839 }
847 if (result != 1) { 840 if (result != 1) {
848 dev_err(dev, "%s: get interface number bad return length: %d\n", __FUNCTION__, result); 841 dev_err(dev, "%s: get interface number bad return length: %d\n", __func__, result);
849 return -EIO; 842 return -EIO;
850 } 843 }
851 844
@@ -863,7 +856,7 @@ static int treo_attach (struct usb_serial *serial)
863 (serial->num_interrupt_in == 0)) 856 (serial->num_interrupt_in == 0))
864 goto generic_startup; 857 goto generic_startup;
865 858
866 dbg("%s", __FUNCTION__); 859 dbg("%s", __func__);
867 860
868 /* 861 /*
869 * It appears that Treos and Kyoceras want to use the 862 * It appears that Treos and Kyoceras want to use the
@@ -894,7 +887,7 @@ generic_startup:
894 887
895static int clie_5_attach (struct usb_serial *serial) 888static int clie_5_attach (struct usb_serial *serial)
896{ 889{
897 dbg("%s", __FUNCTION__); 890 dbg("%s", __func__);
898 891
899 /* TH55 registers 2 ports. 892 /* TH55 registers 2 ports.
900 Communication in from the UX50/TH55 uses bulk_in_endpointAddress from port 0 893 Communication in from the UX50/TH55 uses bulk_in_endpointAddress from port 0
@@ -918,7 +911,7 @@ static void visor_shutdown (struct usb_serial *serial)
918 struct visor_private *priv; 911 struct visor_private *priv;
919 int i; 912 int i;
920 913
921 dbg("%s", __FUNCTION__); 914 dbg("%s", __func__);
922 915
923 for (i = 0; i < serial->num_ports; i++) { 916 for (i = 0; i < serial->num_ports; i++) {
924 priv = usb_get_serial_port_data(serial->port[i]); 917 priv = usb_get_serial_port_data(serial->port[i]);
@@ -931,7 +924,7 @@ static void visor_shutdown (struct usb_serial *serial)
931 924
932static int visor_ioctl (struct usb_serial_port *port, struct file * file, unsigned int cmd, unsigned long arg) 925static int visor_ioctl (struct usb_serial_port *port, struct file * file, unsigned int cmd, unsigned long arg)
933{ 926{
934 dbg("%s - port %d, cmd 0x%.4x", __FUNCTION__, port->number, cmd); 927 dbg("%s - port %d, cmd 0x%.4x", __func__, port->number, cmd);
935 928
936 return -ENOIOCTLCMD; 929 return -ENOIOCTLCMD;
937} 930}