can: peak_usb: fix multi-byte values endianess
authorStephane Grosjean <s.grosjean@peak-system.com>
Fri, 5 Dec 2014 13:11:09 +0000 (14:11 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 7 Dec 2014 20:04:03 +0000 (21:04 +0100)
commit62bc24f67abda56e486735706be6a4dea60fdb4c
tree98d698ba929c0484de8ded3d8f7ae670650ba3af
parentaf35d0f1cce7a990286e2b94c260a2c2d2a0e4b0
can: peak_usb: fix multi-byte values endianess

This patch fixes the endianess definition as well as the usage of the
multi-byte fields in the data structures exchanged with the PEAK-System USB
adapters.

By fixing the endianess, this patch also fixes the wrong usage of a 32-bits
local variable for handling the error status 16-bits field, in function
pcan_usb_pro_handle_error().

Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/peak_usb/pcan_usb.c
drivers/net/can/usb/peak_usb/pcan_usb_core.c
drivers/net/can/usb/peak_usb/pcan_usb_pro.c
drivers/net/can/usb/peak_usb/pcan_usb_pro.h