Skip to content

Commit

Permalink
can: gs_usb: convert from usb_control_msg() to usb_control_msg_{send,…
Browse files Browse the repository at this point in the history
…recv}()

Convert the driver to use usb_control_msg_{send,recv}() instead of
usb_control_msg(). These functions allow the data to be placed on the
stack. This makes the driver a lot easier as we don't have to deal
with dynamically allocated memory.

Link: https://lore.kernel.org/all/20220921193902.575416-3-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
Marc Kleine-Budde committed Sep 23, 2022
1 parent 0024675 commit 3814ed2
Showing 1 changed file with 107 additions and 194 deletions.
Loading

0 comments on commit 3814ed2

Please sign in to comment.