aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/usb
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2010-03-17 23:06:08 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-20 13:21:35 -0700
commiteaa3bcb06aed1ac1d6d9e3edd3b5f72ea57a6ac0 (patch)
treea55b216df6a5977ab8d502df44397ef7ebbb11bc /Documentation/usb
parent25d514ca227e1ac81d0906a4ccf2aa171f50a600 (diff)
downloadkernel_samsung_smdk4412-eaa3bcb06aed1ac1d6d9e3edd3b5f72ea57a6ac0.zip
kernel_samsung_smdk4412-eaa3bcb06aed1ac1d6d9e3edd3b5f72ea57a6ac0.tar.gz
kernel_samsung_smdk4412-eaa3bcb06aed1ac1d6d9e3edd3b5f72ea57a6ac0.tar.bz2
USB: serial: generalise write buffer preparation
Generalise write buffer preparation. This allows for drivers to manipulate (e.g. add headers) to bulk out data before it is sent. This adds a new function pointer to usb_serial_driver: int (*prepare_write_buffer)(struct usb_serial_port *port, void **dest, size_t size, const void *src, size_t count); The function is generic and can be used with either kfifo-based or multi-urb writes: If *dest is NULL the implementation should allocate dest. If src is NULL the implementation should use the port write fifo. If not set, a generic implementation is used which simply uses memcpy or kfifo_out. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'Documentation/usb')
0 files changed, 0 insertions, 0 deletions