aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/serial/cypress_m8.c2
-rw-r--r--drivers/usb/serial/digi_acceleport.c4
-rw-r--r--drivers/usb/serial/spcp8x5.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress_m8.c
index e23c77925e7a..582e832dca72 100644
--- a/drivers/usb/serial/cypress_m8.c
+++ b/drivers/usb/serial/cypress_m8.c
@@ -1309,7 +1309,7 @@ static void cypress_read_int_callback(struct urb *urb)
1309 /* process read if there is data other than line status */ 1309 /* process read if there is data other than line status */
1310 if (tty && bytes > i) { 1310 if (tty && bytes > i) {
1311 tty_insert_flip_string_fixed_flag(tty, data + i, 1311 tty_insert_flip_string_fixed_flag(tty, data + i,
1312 bytes - i, tty_flag); 1312 tty_flag, bytes - i);
1313 tty_flip_buffer_push(tty); 1313 tty_flip_buffer_push(tty);
1314 } 1314 }
1315 1315
diff --git a/drivers/usb/serial/digi_acceleport.c b/drivers/usb/serial/digi_acceleport.c
index 68b0aa5e516c..3edda3ed822a 100644
--- a/drivers/usb/serial/digi_acceleport.c
+++ b/drivers/usb/serial/digi_acceleport.c
@@ -1703,8 +1703,8 @@ static int digi_read_inb_callback(struct urb *urb)
1703 /* data length is len-1 (one byte of len is port_status) */ 1703 /* data length is len-1 (one byte of len is port_status) */
1704 --len; 1704 --len;
1705 if (len > 0) { 1705 if (len > 0) {
1706 tty_insert_flip_string_fixed_flag(tty, data, len, 1706 tty_insert_flip_string_fixed_flag(tty, data, flag,
1707 flag); 1707 len);
1708 tty_flip_buffer_push(tty); 1708 tty_flip_buffer_push(tty);
1709 } 1709 }
1710 } 1710 }
diff --git a/drivers/usb/serial/spcp8x5.c b/drivers/usb/serial/spcp8x5.c
index 5d39191e7244..2ea32c561d02 100644
--- a/drivers/usb/serial/spcp8x5.c
+++ b/drivers/usb/serial/spcp8x5.c
@@ -726,8 +726,8 @@ static void spcp8x5_read_bulk_callback(struct urb *urb)
726 /* overrun is special, not associated with a char */ 726 /* overrun is special, not associated with a char */
727 if (status & UART_OVERRUN_ERROR) 727 if (status & UART_OVERRUN_ERROR)
728 tty_insert_flip_char(tty, 0, TTY_OVERRUN); 728 tty_insert_flip_char(tty, 0, TTY_OVERRUN);
729 tty_insert_flip_string_fixed_flag(tty, data, 729 tty_insert_flip_string_fixed_flag(tty, data, tty_flag,
730 urb->actual_length, tty_flag); 730 urb->actual_length);
731 tty_flip_buffer_push(tty); 731 tty_flip_buffer_push(tty);
732 } 732 }
733 tty_kref_put(tty); 733 tty_kref_put(tty);