Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

can: ems_usb: mark timestamp as little endian

The struct ems_cpc_msg describes the a message received from the USB device,
which uses little endian byte order. This patch marks the timestamp in struct
ems_cpc_msg accordingly.

Acked-by: Gerhard Uttenthaler <uttenthaler@ems-wuensche.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

+2 -2
+2 -2
drivers/net/can/usb/ems_usb.c
··· 200 200 u8 type; /* type of message */ 201 201 u8 length; /* length of data within union 'msg' */ 202 202 u8 msgid; /* confirmation handle */ 203 - u32 ts_sec; /* timestamp in seconds */ 204 - u32 ts_nsec; /* timestamp in nano seconds */ 203 + __le32 ts_sec; /* timestamp in seconds */ 204 + __le32 ts_nsec; /* timestamp in nano seconds */ 205 205 206 206 union { 207 207 u8 generic[64];