]> git.baikalelectronics.ru Git - kernel.git/commit
can: gs_usb: convert from usb_control_msg() to usb_control_msg_{send,recv}()
authorMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 18 Sep 2022 20:42:59 +0000 (22:42 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 23 Sep 2022 11:55:00 +0000 (13:55 +0200)
commiteb79e86cf0bea0b53391fbef055a4ee793ea0a1e
treeca6fdb673a6052c0f32eb6526e0671c09d5093c6
parentedb0f596ddbe809b4d5b24cd2a7dd2cd6673960b
can: gs_usb: convert from usb_control_msg() to usb_control_msg_{send,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>
drivers/net/can/usb/gs_usb.c