can: peak_usb: pcan_usb: replace open coded endianness conversion of unaligned data
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 5 Apr 2021 12:44:15 +0000 (14:44 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 13 Apr 2021 08:15:44 +0000 (10:15 +0200)
commitbd573ea5720470d1ea70f3e39fb2e2efad219311
tree09c72af0de3a94515f9ebf5bc3aef88dccc6c7d7
parentb7a29d35a9849e898232111ec083e382fb1adf25
can: peak_usb: pcan_usb: replace open coded endianness conversion of unaligned data

This patch replaces the open coded endianness conversion of unaligned
data by the appropriate get/put_unaligned_leXX() variants.

Link: https://lore.kernel.org/r/20210406111622.1874957-11-mkl@pengutronix.de
Acked-by: Stephane Grosjean <s.grosjean@peak-system.com>
Tested-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