USB: serial: kl5kusb105: use usb_control_msg_recv() and usb_control_msg_send()
authorHimadri Pandya <himadrispandya@gmail.com>
Sun, 1 Aug 2021 20:31:22 +0000 (02:01 +0530)
committerJohan Hovold <johan@kernel.org>
Tue, 21 Sep 2021 12:53:15 +0000 (14:53 +0200)
commit71b20b34afc2e709f3bbce516fbfdd9f042b607a
treeccd6224a077555ef74a52b31ea4f49a5bcdbb37e
parentc9129371cb3d4847ce20a6bcb9708b14eeee665b
USB: serial: kl5kusb105: use usb_control_msg_recv() and usb_control_msg_send()

The wrappers usb_control_msg_send/recv eliminate the need of manually
allocating DMA buffers for USB messages. They also treat short reads as
an error. Hence use the wrappers and remove DMA allocations.

Note that short reads are now logged as -EREMOTEIO instead of the amount
of data read.

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