diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2024-03-04 08:45:30 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2024-03-04 08:46:56 +0100 |
commit | ef488e47e060eb6d6b08de12a2a9b40ba345c4d0 (patch) | |
tree | 1ce2802f321aadba222aaab91f7bc057e26dcaa2 /drivers/net/can | |
parent | 9b221ba452aa752a088f88bc40196e8f927b26f3 (diff) | |
download | lwn-ef488e47e060eb6d6b08de12a2a9b40ba345c4d0.tar.gz lwn-ef488e47e060eb6d6b08de12a2a9b40ba345c4d0.zip |
can: gs_usb: gs_cmd_reset(): use cpu_to_le32() to assign mode
The structure gs_device_mode dm::mode is a __le32, use cpu_to_le32()
to assign GS_CAN_MODE_RESET.
As GS_CAN_MODE_RESET is 0x0, this is basically a no-op.
Link: https://lore.kernel.org/all/20240304074540.3584842-1-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can')
-rw-r--r-- | drivers/net/can/usb/gs_usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/usb/gs_usb.c b/drivers/net/can/usb/gs_usb.c index 95b0fdb602c8..65c962f76898 100644 --- a/drivers/net/can/usb/gs_usb.c +++ b/drivers/net/can/usb/gs_usb.c @@ -385,7 +385,7 @@ static struct gs_tx_context *gs_get_tx_context(struct gs_can *dev, static int gs_cmd_reset(struct gs_can *dev) { struct gs_device_mode dm = { - .mode = GS_CAN_MODE_RESET, + .mode = cpu_to_le32(GS_CAN_MODE_RESET), }; return usb_control_msg_send(dev->udev, 0, GS_USB_BREQ_MODE, |