diff options
Diffstat (limited to 'drivers/usb/serial/keyspan.c')
-rw-r--r-- | drivers/usb/serial/keyspan.c | 53 |
1 files changed, 1 insertions, 52 deletions
diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c index a39ddd1b0dca..a1b99243dac9 100644 --- a/drivers/usb/serial/keyspan.c +++ b/drivers/usb/serial/keyspan.c | |||
@@ -130,15 +130,13 @@ struct keyspan_port_private { | |||
130 | #include "keyspan_usa67msg.h" | 130 | #include "keyspan_usa67msg.h" |
131 | 131 | ||
132 | 132 | ||
133 | module_usb_serial_driver(keyspan_driver, serial_drivers); | 133 | module_usb_serial_driver(serial_drivers, keyspan_ids_combined); |
134 | 134 | ||
135 | static void keyspan_break_ctl(struct tty_struct *tty, int break_state) | 135 | static void keyspan_break_ctl(struct tty_struct *tty, int break_state) |
136 | { | 136 | { |
137 | struct usb_serial_port *port = tty->driver_data; | 137 | struct usb_serial_port *port = tty->driver_data; |
138 | struct keyspan_port_private *p_priv; | 138 | struct keyspan_port_private *p_priv; |
139 | 139 | ||
140 | dbg("%s", __func__); | ||
141 | |||
142 | p_priv = usb_get_serial_port_data(port); | 140 | p_priv = usb_get_serial_port_data(port); |
143 | 141 | ||
144 | if (break_state == -1) | 142 | if (break_state == -1) |
@@ -158,8 +156,6 @@ static void keyspan_set_termios(struct tty_struct *tty, | |||
158 | const struct keyspan_device_details *d_details; | 156 | const struct keyspan_device_details *d_details; |
159 | unsigned int cflag; | 157 | unsigned int cflag; |
160 | 158 | ||
161 | dbg("%s", __func__); | ||
162 | |||
163 | p_priv = usb_get_serial_port_data(port); | 159 | p_priv = usb_get_serial_port_data(port); |
164 | d_details = p_priv->device_details; | 160 | d_details = p_priv->device_details; |
165 | cflag = tty->termios->c_cflag; | 161 | cflag = tty->termios->c_cflag; |
@@ -306,8 +302,6 @@ static void usa26_indat_callback(struct urb *urb) | |||
306 | unsigned char *data = urb->transfer_buffer; | 302 | unsigned char *data = urb->transfer_buffer; |
307 | int status = urb->status; | 303 | int status = urb->status; |
308 | 304 | ||
309 | dbg("%s", __func__); | ||
310 | |||
311 | endpoint = usb_pipeendpoint(urb->pipe); | 305 | endpoint = usb_pipeendpoint(urb->pipe); |
312 | 306 | ||
313 | if (status) { | 307 | if (status) { |
@@ -369,8 +363,6 @@ static void usa2x_outdat_callback(struct urb *urb) | |||
369 | 363 | ||
370 | static void usa26_inack_callback(struct urb *urb) | 364 | static void usa26_inack_callback(struct urb *urb) |
371 | { | 365 | { |
372 | dbg("%s", __func__); | ||
373 | |||
374 | } | 366 | } |
375 | 367 | ||
376 | static void usa26_outcont_callback(struct urb *urb) | 368 | static void usa26_outcont_callback(struct urb *urb) |
@@ -452,7 +444,6 @@ exit: ; | |||
452 | 444 | ||
453 | static void usa26_glocont_callback(struct urb *urb) | 445 | static void usa26_glocont_callback(struct urb *urb) |
454 | { | 446 | { |
455 | dbg("%s", __func__); | ||
456 | } | 447 | } |
457 | 448 | ||
458 | 449 | ||
@@ -465,8 +456,6 @@ static void usa28_indat_callback(struct urb *urb) | |||
465 | struct keyspan_port_private *p_priv; | 456 | struct keyspan_port_private *p_priv; |
466 | int status = urb->status; | 457 | int status = urb->status; |
467 | 458 | ||
468 | dbg("%s", __func__); | ||
469 | |||
470 | port = urb->context; | 459 | port = urb->context; |
471 | p_priv = usb_get_serial_port_data(port); | 460 | p_priv = usb_get_serial_port_data(port); |
472 | data = urb->transfer_buffer; | 461 | data = urb->transfer_buffer; |
@@ -505,7 +494,6 @@ static void usa28_indat_callback(struct urb *urb) | |||
505 | 494 | ||
506 | static void usa28_inack_callback(struct urb *urb) | 495 | static void usa28_inack_callback(struct urb *urb) |
507 | { | 496 | { |
508 | dbg("%s", __func__); | ||
509 | } | 497 | } |
510 | 498 | ||
511 | static void usa28_outcont_callback(struct urb *urb) | 499 | static void usa28_outcont_callback(struct urb *urb) |
@@ -585,7 +573,6 @@ exit: ; | |||
585 | 573 | ||
586 | static void usa28_glocont_callback(struct urb *urb) | 574 | static void usa28_glocont_callback(struct urb *urb) |
587 | { | 575 | { |
588 | dbg("%s", __func__); | ||
589 | } | 576 | } |
590 | 577 | ||
591 | 578 | ||
@@ -596,8 +583,6 @@ static void usa49_glocont_callback(struct urb *urb) | |||
596 | struct keyspan_port_private *p_priv; | 583 | struct keyspan_port_private *p_priv; |
597 | int i; | 584 | int i; |
598 | 585 | ||
599 | dbg("%s", __func__); | ||
600 | |||
601 | serial = urb->context; | 586 | serial = urb->context; |
602 | for (i = 0; i < serial->num_ports; ++i) { | 587 | for (i = 0; i < serial->num_ports; ++i) { |
603 | port = serial->port[i]; | 588 | port = serial->port[i]; |
@@ -625,8 +610,6 @@ static void usa49_instat_callback(struct urb *urb) | |||
625 | int old_dcd_state; | 610 | int old_dcd_state; |
626 | int status = urb->status; | 611 | int status = urb->status; |
627 | 612 | ||
628 | dbg("%s", __func__); | ||
629 | |||
630 | serial = urb->context; | 613 | serial = urb->context; |
631 | 614 | ||
632 | if (status) { | 615 | if (status) { |
@@ -679,7 +662,6 @@ exit: ; | |||
679 | 662 | ||
680 | static void usa49_inack_callback(struct urb *urb) | 663 | static void usa49_inack_callback(struct urb *urb) |
681 | { | 664 | { |
682 | dbg("%s", __func__); | ||
683 | } | 665 | } |
684 | 666 | ||
685 | static void usa49_indat_callback(struct urb *urb) | 667 | static void usa49_indat_callback(struct urb *urb) |
@@ -691,8 +673,6 @@ static void usa49_indat_callback(struct urb *urb) | |||
691 | unsigned char *data = urb->transfer_buffer; | 673 | unsigned char *data = urb->transfer_buffer; |
692 | int status = urb->status; | 674 | int status = urb->status; |
693 | 675 | ||
694 | dbg("%s", __func__); | ||
695 | |||
696 | endpoint = usb_pipeendpoint(urb->pipe); | 676 | endpoint = usb_pipeendpoint(urb->pipe); |
697 | 677 | ||
698 | if (status) { | 678 | if (status) { |
@@ -742,8 +722,6 @@ static void usa49wg_indat_callback(struct urb *urb) | |||
742 | unsigned char *data = urb->transfer_buffer; | 722 | unsigned char *data = urb->transfer_buffer; |
743 | int status = urb->status; | 723 | int status = urb->status; |
744 | 724 | ||
745 | dbg("%s", __func__); | ||
746 | |||
747 | serial = urb->context; | 725 | serial = urb->context; |
748 | 726 | ||
749 | if (status) { | 727 | if (status) { |
@@ -806,7 +784,6 @@ static void usa49wg_indat_callback(struct urb *urb) | |||
806 | /* not used, usa-49 doesn't have per-port control endpoints */ | 784 | /* not used, usa-49 doesn't have per-port control endpoints */ |
807 | static void usa49_outcont_callback(struct urb *urb) | 785 | static void usa49_outcont_callback(struct urb *urb) |
808 | { | 786 | { |
809 | dbg("%s", __func__); | ||
810 | } | 787 | } |
811 | 788 | ||
812 | static void usa90_indat_callback(struct urb *urb) | 789 | static void usa90_indat_callback(struct urb *urb) |
@@ -819,8 +796,6 @@ static void usa90_indat_callback(struct urb *urb) | |||
819 | unsigned char *data = urb->transfer_buffer; | 796 | unsigned char *data = urb->transfer_buffer; |
820 | int status = urb->status; | 797 | int status = urb->status; |
821 | 798 | ||
822 | dbg("%s", __func__); | ||
823 | |||
824 | endpoint = usb_pipeendpoint(urb->pipe); | 799 | endpoint = usb_pipeendpoint(urb->pipe); |
825 | 800 | ||
826 | if (status) { | 801 | if (status) { |
@@ -957,8 +932,6 @@ static void usa67_instat_callback(struct urb *urb) | |||
957 | int old_dcd_state; | 932 | int old_dcd_state; |
958 | int status = urb->status; | 933 | int status = urb->status; |
959 | 934 | ||
960 | dbg("%s", __func__); | ||
961 | |||
962 | serial = urb->context; | 935 | serial = urb->context; |
963 | 936 | ||
964 | if (status) { | 937 | if (status) { |
@@ -1010,8 +983,6 @@ static void usa67_glocont_callback(struct urb *urb) | |||
1010 | struct keyspan_port_private *p_priv; | 983 | struct keyspan_port_private *p_priv; |
1011 | int i; | 984 | int i; |
1012 | 985 | ||
1013 | dbg("%s", __func__); | ||
1014 | |||
1015 | serial = urb->context; | 986 | serial = urb->context; |
1016 | for (i = 0; i < serial->num_ports; ++i) { | 987 | for (i = 0; i < serial->num_ports; ++i) { |
1017 | port = serial->port[i]; | 988 | port = serial->port[i]; |
@@ -1035,7 +1006,6 @@ static int keyspan_write_room(struct tty_struct *tty) | |||
1035 | int data_len; | 1006 | int data_len; |
1036 | struct urb *this_urb; | 1007 | struct urb *this_urb; |
1037 | 1008 | ||
1038 | dbg("%s", __func__); | ||
1039 | p_priv = usb_get_serial_port_data(port); | 1009 | p_priv = usb_get_serial_port_data(port); |
1040 | d_details = p_priv->device_details; | 1010 | d_details = p_priv->device_details; |
1041 | 1011 | ||
@@ -1078,8 +1048,6 @@ static int keyspan_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
1078 | p_priv = usb_get_serial_port_data(port); | 1048 | p_priv = usb_get_serial_port_data(port); |
1079 | d_details = p_priv->device_details; | 1049 | d_details = p_priv->device_details; |
1080 | 1050 | ||
1081 | dbg("%s - port%d.", __func__, port->number); | ||
1082 | |||
1083 | /* Set some sane defaults */ | 1051 | /* Set some sane defaults */ |
1084 | p_priv->rts_state = 1; | 1052 | p_priv->rts_state = 1; |
1085 | p_priv->dtr_state = 1; | 1053 | p_priv->dtr_state = 1; |
@@ -1165,7 +1133,6 @@ static void keyspan_close(struct usb_serial_port *port) | |||
1165 | struct keyspan_serial_private *s_priv; | 1133 | struct keyspan_serial_private *s_priv; |
1166 | struct keyspan_port_private *p_priv; | 1134 | struct keyspan_port_private *p_priv; |
1167 | 1135 | ||
1168 | dbg("%s", __func__); | ||
1169 | s_priv = usb_get_serial_data(serial); | 1136 | s_priv = usb_get_serial_data(serial); |
1170 | p_priv = usb_get_serial_port_data(port); | 1137 | p_priv = usb_get_serial_port_data(port); |
1171 | 1138 | ||
@@ -1438,8 +1405,6 @@ static void keyspan_setup_urbs(struct usb_serial *serial) | |||
1438 | struct callbacks *cback; | 1405 | struct callbacks *cback; |
1439 | int endp; | 1406 | int endp; |
1440 | 1407 | ||
1441 | dbg("%s", __func__); | ||
1442 | |||
1443 | s_priv = usb_get_serial_data(serial); | 1408 | s_priv = usb_get_serial_data(serial); |
1444 | d_details = s_priv->device_details; | 1409 | d_details = s_priv->device_details; |
1445 | 1410 | ||
@@ -1853,8 +1818,6 @@ static int keyspan_usa28_send_setup(struct usb_serial *serial, | |||
1853 | struct urb *this_urb; | 1818 | struct urb *this_urb; |
1854 | int device_port, err; | 1819 | int device_port, err; |
1855 | 1820 | ||
1856 | dbg("%s", __func__); | ||
1857 | |||
1858 | s_priv = usb_get_serial_data(serial); | 1821 | s_priv = usb_get_serial_data(serial); |
1859 | p_priv = usb_get_serial_port_data(port); | 1822 | p_priv = usb_get_serial_port_data(port); |
1860 | d_details = s_priv->device_details; | 1823 | d_details = s_priv->device_details; |
@@ -1980,8 +1943,6 @@ static int keyspan_usa49_send_setup(struct usb_serial *serial, | |||
1980 | struct urb *this_urb; | 1943 | struct urb *this_urb; |
1981 | int err, device_port; | 1944 | int err, device_port; |
1982 | 1945 | ||
1983 | dbg("%s", __func__); | ||
1984 | |||
1985 | s_priv = usb_get_serial_data(serial); | 1946 | s_priv = usb_get_serial_data(serial); |
1986 | p_priv = usb_get_serial_port_data(port); | 1947 | p_priv = usb_get_serial_port_data(port); |
1987 | d_details = s_priv->device_details; | 1948 | d_details = s_priv->device_details; |
@@ -2168,8 +2129,6 @@ static int keyspan_usa90_send_setup(struct usb_serial *serial, | |||
2168 | int err; | 2129 | int err; |
2169 | u8 prescaler; | 2130 | u8 prescaler; |
2170 | 2131 | ||
2171 | dbg("%s", __func__); | ||
2172 | |||
2173 | s_priv = usb_get_serial_data(serial); | 2132 | s_priv = usb_get_serial_data(serial); |
2174 | p_priv = usb_get_serial_port_data(port); | 2133 | p_priv = usb_get_serial_port_data(port); |
2175 | d_details = s_priv->device_details; | 2134 | d_details = s_priv->device_details; |
@@ -2300,8 +2259,6 @@ static int keyspan_usa67_send_setup(struct usb_serial *serial, | |||
2300 | struct urb *this_urb; | 2259 | struct urb *this_urb; |
2301 | int err, device_port; | 2260 | int err, device_port; |
2302 | 2261 | ||
2303 | dbg("%s", __func__); | ||
2304 | |||
2305 | s_priv = usb_get_serial_data(serial); | 2262 | s_priv = usb_get_serial_data(serial); |
2306 | p_priv = usb_get_serial_port_data(port); | 2263 | p_priv = usb_get_serial_port_data(port); |
2307 | d_details = s_priv->device_details; | 2264 | d_details = s_priv->device_details; |
@@ -2442,8 +2399,6 @@ static void keyspan_send_setup(struct usb_serial_port *port, int reset_port) | |||
2442 | struct keyspan_serial_private *s_priv; | 2399 | struct keyspan_serial_private *s_priv; |
2443 | const struct keyspan_device_details *d_details; | 2400 | const struct keyspan_device_details *d_details; |
2444 | 2401 | ||
2445 | dbg("%s", __func__); | ||
2446 | |||
2447 | s_priv = usb_get_serial_data(serial); | 2402 | s_priv = usb_get_serial_data(serial); |
2448 | d_details = s_priv->device_details; | 2403 | d_details = s_priv->device_details; |
2449 | 2404 | ||
@@ -2477,8 +2432,6 @@ static int keyspan_startup(struct usb_serial *serial) | |||
2477 | struct keyspan_port_private *p_priv; | 2432 | struct keyspan_port_private *p_priv; |
2478 | const struct keyspan_device_details *d_details; | 2433 | const struct keyspan_device_details *d_details; |
2479 | 2434 | ||
2480 | dbg("%s", __func__); | ||
2481 | |||
2482 | for (i = 0; (d_details = keyspan_devices[i]) != NULL; ++i) | 2435 | for (i = 0; (d_details = keyspan_devices[i]) != NULL; ++i) |
2483 | if (d_details->product_id == | 2436 | if (d_details->product_id == |
2484 | le16_to_cpu(serial->dev->descriptor.idProduct)) | 2437 | le16_to_cpu(serial->dev->descriptor.idProduct)) |
@@ -2538,8 +2491,6 @@ static void keyspan_disconnect(struct usb_serial *serial) | |||
2538 | struct keyspan_serial_private *s_priv; | 2491 | struct keyspan_serial_private *s_priv; |
2539 | struct keyspan_port_private *p_priv; | 2492 | struct keyspan_port_private *p_priv; |
2540 | 2493 | ||
2541 | dbg("%s", __func__); | ||
2542 | |||
2543 | s_priv = usb_get_serial_data(serial); | 2494 | s_priv = usb_get_serial_data(serial); |
2544 | 2495 | ||
2545 | /* Stop reading/writing urbs */ | 2496 | /* Stop reading/writing urbs */ |
@@ -2579,8 +2530,6 @@ static void keyspan_release(struct usb_serial *serial) | |||
2579 | struct usb_serial_port *port; | 2530 | struct usb_serial_port *port; |
2580 | struct keyspan_serial_private *s_priv; | 2531 | struct keyspan_serial_private *s_priv; |
2581 | 2532 | ||
2582 | dbg("%s", __func__); | ||
2583 | |||
2584 | s_priv = usb_get_serial_data(serial); | 2533 | s_priv = usb_get_serial_data(serial); |
2585 | 2534 | ||
2586 | /* dbg("Freeing serial->private."); */ | 2535 | /* dbg("Freeing serial->private."); */ |