diff options
author | Himadri Pandya <[email protected]> | 2021-10-01 08:57:20 +0200 |
---|---|---|
committer | Johan Hovold <[email protected]> | 2021-10-27 14:57:41 +0200 |
commit | f5cfbecb0a162319464c9408420282d22ed69721 (patch) | |
tree | 9862bdd5c799dbe01e634650624074b44626ceb0 /drivers/usb/cdns3/cdns3-trace.c | |
parent | 74f266455062c158f343bc3aa35ef84b3eb7adf1 (diff) |
USB: serial: cp210x: use usb_control_msg_recv() and usb_control_msg_send()
The new wrapper functions for usb_control_msg() can accept data from
stack and treat short reads as errors. Hence use the wrappers functions.
Please note that because of this change, cp210x_read_reg_block() will no
longer log the length of short reads.
Signed-off-by: Himadri Pandya <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ johan: style changes ]
Signed-off-by: Johan Hovold <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions