diff options
Diffstat (limited to 'drivers/usb/serial/keyspan.c')
-rw-r--r-- | drivers/usb/serial/keyspan.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c index 0d122feb2b22..3df8a66c5c3c 100644 --- a/drivers/usb/serial/keyspan.c +++ b/drivers/usb/serial/keyspan.c | |||
@@ -445,7 +445,7 @@ static void usa26_indat_callback(struct urb *urb) | |||
445 | return; | 445 | return; |
446 | } | 446 | } |
447 | 447 | ||
448 | port = (struct usb_serial_port *) urb->context; | 448 | port = urb->context; |
449 | tty = port->tty; | 449 | tty = port->tty; |
450 | if (tty && urb->actual_length) { | 450 | if (tty && urb->actual_length) { |
451 | /* 0x80 bit is error flag */ | 451 | /* 0x80 bit is error flag */ |
@@ -490,7 +490,7 @@ static void usa2x_outdat_callback(struct urb *urb) | |||
490 | struct usb_serial_port *port; | 490 | struct usb_serial_port *port; |
491 | struct keyspan_port_private *p_priv; | 491 | struct keyspan_port_private *p_priv; |
492 | 492 | ||
493 | port = (struct usb_serial_port *) urb->context; | 493 | port = urb->context; |
494 | p_priv = usb_get_serial_port_data(port); | 494 | p_priv = usb_get_serial_port_data(port); |
495 | dbg ("%s - urb %d", __func__, urb == p_priv->out_urbs[1]); | 495 | dbg ("%s - urb %d", __func__, urb == p_priv->out_urbs[1]); |
496 | 496 | ||
@@ -509,7 +509,7 @@ static void usa26_outcont_callback(struct urb *urb) | |||
509 | struct usb_serial_port *port; | 509 | struct usb_serial_port *port; |
510 | struct keyspan_port_private *p_priv; | 510 | struct keyspan_port_private *p_priv; |
511 | 511 | ||
512 | port = (struct usb_serial_port *) urb->context; | 512 | port = urb->context; |
513 | p_priv = usb_get_serial_port_data(port); | 513 | p_priv = usb_get_serial_port_data(port); |
514 | 514 | ||
515 | if (p_priv->resend_cont) { | 515 | if (p_priv->resend_cont) { |
@@ -528,7 +528,7 @@ static void usa26_instat_callback(struct urb *urb) | |||
528 | int old_dcd_state, err; | 528 | int old_dcd_state, err; |
529 | int status = urb->status; | 529 | int status = urb->status; |
530 | 530 | ||
531 | serial = (struct usb_serial *) urb->context; | 531 | serial = urb->context; |
532 | 532 | ||
533 | if (status) { | 533 | if (status) { |
534 | dbg("%s - nonzero status: %x", __func__, status); | 534 | dbg("%s - nonzero status: %x", __func__, status); |
@@ -599,7 +599,7 @@ static void usa28_indat_callback(struct urb *urb) | |||
599 | 599 | ||
600 | dbg ("%s", __func__); | 600 | dbg ("%s", __func__); |
601 | 601 | ||
602 | port = (struct usb_serial_port *) urb->context; | 602 | port = urb->context; |
603 | p_priv = usb_get_serial_port_data(port); | 603 | p_priv = usb_get_serial_port_data(port); |
604 | data = urb->transfer_buffer; | 604 | data = urb->transfer_buffer; |
605 | 605 | ||
@@ -613,7 +613,7 @@ static void usa28_indat_callback(struct urb *urb) | |||
613 | return; | 613 | return; |
614 | } | 614 | } |
615 | 615 | ||
616 | port = (struct usb_serial_port *) urb->context; | 616 | port = urb->context; |
617 | p_priv = usb_get_serial_port_data(port); | 617 | p_priv = usb_get_serial_port_data(port); |
618 | data = urb->transfer_buffer; | 618 | data = urb->transfer_buffer; |
619 | 619 | ||
@@ -647,7 +647,7 @@ static void usa28_outcont_callback(struct urb *urb) | |||
647 | struct usb_serial_port *port; | 647 | struct usb_serial_port *port; |
648 | struct keyspan_port_private *p_priv; | 648 | struct keyspan_port_private *p_priv; |
649 | 649 | ||
650 | port = (struct usb_serial_port *) urb->context; | 650 | port = urb->context; |
651 | p_priv = usb_get_serial_port_data(port); | 651 | p_priv = usb_get_serial_port_data(port); |
652 | 652 | ||
653 | if (p_priv->resend_cont) { | 653 | if (p_priv->resend_cont) { |
@@ -667,7 +667,7 @@ static void usa28_instat_callback(struct urb *urb) | |||
667 | int old_dcd_state; | 667 | int old_dcd_state; |
668 | int status = urb->status; | 668 | int status = urb->status; |
669 | 669 | ||
670 | serial = (struct usb_serial *) urb->context; | 670 | serial = urb->context; |
671 | 671 | ||
672 | if (status) { | 672 | if (status) { |
673 | dbg("%s - nonzero status: %x", __func__, status); | 673 | dbg("%s - nonzero status: %x", __func__, status); |
@@ -733,7 +733,7 @@ static void usa49_glocont_callback(struct urb *urb) | |||
733 | 733 | ||
734 | dbg ("%s", __func__); | 734 | dbg ("%s", __func__); |
735 | 735 | ||
736 | serial = (struct usb_serial *) urb->context; | 736 | serial = urb->context; |
737 | for (i = 0; i < serial->num_ports; ++i) { | 737 | for (i = 0; i < serial->num_ports; ++i) { |
738 | port = serial->port[i]; | 738 | port = serial->port[i]; |
739 | p_priv = usb_get_serial_port_data(port); | 739 | p_priv = usb_get_serial_port_data(port); |
@@ -761,7 +761,7 @@ static void usa49_instat_callback(struct urb *urb) | |||
761 | 761 | ||
762 | dbg ("%s", __func__); | 762 | dbg ("%s", __func__); |
763 | 763 | ||
764 | serial = (struct usb_serial *) urb->context; | 764 | serial = urb->context; |
765 | 765 | ||
766 | if (status) { | 766 | if (status) { |
767 | dbg("%s - nonzero status: %x", __func__, status); | 767 | dbg("%s - nonzero status: %x", __func__, status); |
@@ -836,7 +836,7 @@ static void usa49_indat_callback(struct urb *urb) | |||
836 | return; | 836 | return; |
837 | } | 837 | } |
838 | 838 | ||
839 | port = (struct usb_serial_port *) urb->context; | 839 | port = urb->context; |
840 | tty = port->tty; | 840 | tty = port->tty; |
841 | if (tty && urb->actual_length) { | 841 | if (tty && urb->actual_length) { |
842 | /* 0x80 bit is error flag */ | 842 | /* 0x80 bit is error flag */ |
@@ -973,7 +973,7 @@ static void usa90_indat_callback(struct urb *urb) | |||
973 | return; | 973 | return; |
974 | } | 974 | } |
975 | 975 | ||
976 | port = (struct usb_serial_port *) urb->context; | 976 | port = urb->context; |
977 | p_priv = usb_get_serial_port_data(port); | 977 | p_priv = usb_get_serial_port_data(port); |
978 | 978 | ||
979 | tty = port->tty; | 979 | tty = port->tty; |
@@ -1037,7 +1037,7 @@ static void usa90_instat_callback(struct urb *urb) | |||
1037 | int old_dcd_state, err; | 1037 | int old_dcd_state, err; |
1038 | int status = urb->status; | 1038 | int status = urb->status; |
1039 | 1039 | ||
1040 | serial = (struct usb_serial *) urb->context; | 1040 | serial = urb->context; |
1041 | 1041 | ||
1042 | if (status) { | 1042 | if (status) { |
1043 | dbg("%s - nonzero status: %x", __func__, status); | 1043 | dbg("%s - nonzero status: %x", __func__, status); |
@@ -1084,7 +1084,7 @@ static void usa90_outcont_callback(struct urb *urb) | |||
1084 | struct usb_serial_port *port; | 1084 | struct usb_serial_port *port; |
1085 | struct keyspan_port_private *p_priv; | 1085 | struct keyspan_port_private *p_priv; |
1086 | 1086 | ||
1087 | port = (struct usb_serial_port *) urb->context; | 1087 | port = urb->context; |
1088 | p_priv = usb_get_serial_port_data(port); | 1088 | p_priv = usb_get_serial_port_data(port); |
1089 | 1089 | ||
1090 | if (p_priv->resend_cont) { | 1090 | if (p_priv->resend_cont) { |