diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2015-03-25 05:36:17 -0400 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2015-04-01 05:08:56 -0400 |
commit | a0bc163a7cf2ceb413a76cfd7149c6591db829ea (patch) | |
tree | 722a6c15dc1a262448352eb360c725aa6e913696 | |
parent | 8a4b5b0fb765947ff8d254e6078ca64ac0439a66 (diff) |
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>
-rw-r--r-- | drivers/net/can/usb/ems_usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/can/usb/ems_usb.c b/drivers/net/can/usb/ems_usb.c index 481f5392970a..866bac0ae7e9 100644 --- a/drivers/net/can/usb/ems_usb.c +++ b/drivers/net/can/usb/ems_usb.c | |||
@@ -200,8 +200,8 @@ struct __packed ems_cpc_msg { | |||
200 | u8 type; /* type of message */ | 200 | u8 type; /* type of message */ |
201 | u8 length; /* length of data within union 'msg' */ | 201 | u8 length; /* length of data within union 'msg' */ |
202 | u8 msgid; /* confirmation handle */ | 202 | u8 msgid; /* confirmation handle */ |
203 | u32 ts_sec; /* timestamp in seconds */ | 203 | __le32 ts_sec; /* timestamp in seconds */ |
204 | u32 ts_nsec; /* timestamp in nano seconds */ | 204 | __le32 ts_nsec; /* timestamp in nano seconds */ |
205 | 205 | ||
206 | union { | 206 | union { |
207 | u8 generic[64]; | 207 | u8 generic[64]; |