diff options
author | Himadri Pandya <himadrispandya@gmail.com> | 2021-10-01 09:57:19 +0300 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2021-10-27 15:34:59 +0300 |
commit | 74f266455062c158f343bc3aa35ef84b3eb7adf1 (patch) | |
tree | 1e202f251fc85e869d1ce81fea875cdf012f0cfb /COPYING | |
parent | c8345c0500de4411762db5941058e34979879128 (diff) | |
download | linux-74f266455062c158f343bc3aa35ef84b3eb7adf1.tar.xz |
USB: serial: ch314: use usb_control_msg_recv()
usb_control_msg_recv() is a new wrapper function for usb_control_msg()
that has error checks for short reads. This function also accepts data
buffer on stack. Hence use this function to simplify error handling for
short reads. Short reads will now get reported as -EREMOTEIO with no
indication of how short the transfer was.
Signed-off-by: Himadri Pandya <himadrispandya@gmail.com>
Link: https://lore.kernel.org/r/20211001065720.21330-2-himadrispandya@gmail.com
[ johan: fix quirk-detection breakage, style changes ]
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions