All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] can: ems_usb: mark timestamp as little endian
@ 2015-03-25 10:13 Marc Kleine-Budde
  2015-03-25 10:15 ` Uwe Kleine-König
  0 siblings, 1 reply; 2+ messages in thread
From: Marc Kleine-Budde @ 2015-03-25 10:13 UTC (permalink / raw)
  To: linux-can; +Cc: haas, kernel, Marc Kleine-Budde

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.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
chagnes since v2:
- even better description (thanks again to Uwe)

 drivers/net/can/usb/ems_usb.c | 4 ++--
 1 file 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 {
 	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];
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v3] can: ems_usb: mark timestamp as little endian
  2015-03-25 10:13 [PATCH v3] can: ems_usb: mark timestamp as little endian Marc Kleine-Budde
@ 2015-03-25 10:15 ` Uwe Kleine-König
  0 siblings, 0 replies; 2+ messages in thread
From: Uwe Kleine-König @ 2015-03-25 10:15 UTC (permalink / raw)
  To: Marc Kleine-Budde; +Cc: linux-can, kernel, haas

On Wed, Mar 25, 2015 at 11:13:37AM +0100, Marc Kleine-Budde wrote:
> 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.
> 
> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

> ---
> chagnes since v2:
> - even better description (thanks again to Uwe)
:-)

Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-25 10:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-25 10:13 [PATCH v3] can: ems_usb: mark timestamp as little endian Marc Kleine-Budde
2015-03-25 10:15 ` Uwe Kleine-König

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.