can: ems_usb: mark timestamp as little endian
authorMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 25 Mar 2015 09:36:17 +0000 (10:36 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 1 Apr 2015 09:08:56 +0000 (11:08 +0200)
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>
drivers/net/can/usb/ems_usb.c

index 481f5392970abce9299747ffbfa6900581a248dd..866bac0ae7e966855d1085f5a8735988832a1bb7 100644 (file)
@@ -200,8 +200,8 @@ struct __packed ems_cpc_msg {
        u8 type;        /* type of message */
        u8 length;      /* length of data within union 'msg' */
        u8 msgid;       /* confirmation handle */
-       u32 ts_sec;     /* timestamp in seconds */
-       u32 ts_nsec;    /* timestamp in nano seconds */
+       __le32 ts_sec;  /* timestamp in seconds */
+       __le32 ts_nsec; /* timestamp in nano seconds */
 
        union {
                u8 generic[64];