From: Marc Kleine-Budde Date: Wed, 25 Mar 2015 09:36:17 +0000 (+0100) Subject: can: ems_usb: mark timestamp as little endian X-Git-Tag: v4.1-rc1~128^2~96^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0bc163a7cf2ceb413a76cfd7149c6591db829ea;p=platform%2Fkernel%2Flinux-exynos.git 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 Acked-by: Uwe Kleine-König Signed-off-by: Marc Kleine-Budde --- diff --git a/drivers/net/can/usb/ems_usb.c b/drivers/net/can/usb/ems_usb.c index 481f539..866bac0 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 { 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];