summaryrefslogtreecommitdiff
path: root/drivers/usb/class/cdc-acm.h
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.com>2016-02-10 12:39:49 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-15 04:06:43 +0300
commita81cf9799ad7299b03a4dff020d9685f9ac5f3e0 (patch)
tree904ee27d3f009e5939d29de421875195d4d49a5c /drivers/usb/class/cdc-acm.h
parentca1c3e6f81d4aa2d0665d004521beea7fd847316 (diff)
downloadlinux-a81cf9799ad7299b03a4dff020d9685f9ac5f3e0.tar.xz
cdc-acm: implement put_char() and flush_chars()
This should cut down latencies and waste if the tty layer writes single bytes. Signed-off-by: Oliver Neukum >oneukum@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/class/cdc-acm.h')
-rw-r--r--drivers/usb/class/cdc-acm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/class/cdc-acm.h b/drivers/usb/class/cdc-acm.h
index ccfaba9ab4e4..05ce308d5d2a 100644
--- a/drivers/usb/class/cdc-acm.h
+++ b/drivers/usb/class/cdc-acm.h
@@ -94,6 +94,7 @@ struct acm {
unsigned long read_urbs_free;
struct urb *read_urbs[ACM_NR];
struct acm_rb read_buffers[ACM_NR];
+ struct acm_wb *putbuffer; /* for acm_tty_put_char() */
int rx_buflimit;
int rx_endpoint;
spinlock_t read_lock;