linux/drivers/net/can/usb/peak_usb
Oliver Hartkopp 69d98969a0 can: rename get_can_dlc() macro with can_cc_dlc2len()
The get_can_dlc() macro is used to ensure the payload length information of
the Classical CAN frame to be max 8 bytes (the CAN_MAX_DLEN).

Rename the macro and use the correct constant in preparation of the len/dlc
cleanup for Classical CAN frames.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Link: https://lore.kernel.org/r/20201110101852.1973-3-socketcan@hartkopp.net
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2020-11-20 09:43:29 +01:00
..
Makefile
pcan_usb.c can: rename get_can_dlc() macro with can_cc_dlc2len() 2020-11-20 09:43:29 +01:00
pcan_usb_core.c can: peak_usb: fix potential integer overflow on shift of a int 2020-11-15 18:24:35 +01:00
pcan_usb_core.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 285 2019-06-05 17:36:37 +02:00
pcan_usb_fd.c can: rename get_can_dlc() macro with can_cc_dlc2len() 2020-11-20 09:43:29 +01:00
pcan_usb_pro.c can: peak_usb: convert to use le32_add_cpu() 2020-09-21 10:13:18 +02:00
pcan_usb_pro.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 285 2019-06-05 17:36:37 +02:00