diff options
| author | Oliver Hartkopp <[email protected]> | 2020-11-10 10:18:46 +0000 |
|---|---|---|
| committer | Marc Kleine-Budde <[email protected]> | 2020-11-20 08:43:29 +0000 |
| commit | 69d98969a0540039fc04e0f22bbe9f41b0a13d66 (patch) | |
| tree | caf7410d6dd6ec78a672734a095c754d2a540156 /drivers/net/can/usb/usb_8dev.c | |
| parent | can: add optional DLC element to Classical CAN frame structure (diff) | |
| download | kernel-69d98969a0540039fc04e0f22bbe9f41b0a13d66.tar.gz kernel-69d98969a0540039fc04e0f22bbe9f41b0a13d66.zip | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'drivers/net/can/usb/usb_8dev.c')
| -rw-r--r-- | drivers/net/can/usb/usb_8dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/usb/usb_8dev.c b/drivers/net/can/usb/usb_8dev.c index 62749c67c959..216c58f8df6e 100644 --- a/drivers/net/can/usb/usb_8dev.c +++ b/drivers/net/can/usb/usb_8dev.c @@ -470,7 +470,7 @@ static void usb_8dev_rx_can_msg(struct usb_8dev_priv *priv, return; cf->can_id = be32_to_cpu(msg->id); - cf->can_dlc = get_can_dlc(msg->dlc & 0xF); + cf->can_dlc = can_cc_dlc2len(msg->dlc & 0xF); if (msg->flags & USB_8DEV_EXTID) cf->can_id |= CAN_EFF_FLAG; |
