USB: serial: ftdi_sio: use usb_control_msg_recv()
authorHimadri Pandya <himadrispandya@gmail.com>
Sun, 1 Aug 2021 20:31:20 +0000 (02:01 +0530)
committerJohan Hovold <johan@kernel.org>
Tue, 21 Sep 2021 12:15:52 +0000 (14:15 +0200)
commita738859264981ae50986471ccd9c3bb096463c4f
tree41b7f9bd26f705c280d505d7ba1f3ea6e35bb24e
parent0d027eea8988a9d9ec2ca4df150b37d82e9e6623
USB: serial: ftdi_sio: use usb_control_msg_recv()

usb_control_msg_recv() nicely wraps usb_control_msg() and removes the
compulsion of using DMA buffers for USB messages. It also includes proper
error check for possible short read. So use the wrapper where
appropriate and remove DMA buffers from the callers.

Signed-off-by: Himadri Pandya <himadrispandya@gmail.com>
Link: https://lore.kernel.org/r/20210801203122.3515-5-himadrispandya@gmail.com
[ johan: amend commit message ]
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ftdi_sio.c