summaryrefslogtreecommitdiff
path: root/include/linux/can/dev/peak_canfd.h
diff options
context:
space:
mode:
authorOliver Hartkopp <socketcan@hartkopp.net>2020-11-10 13:18:47 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2020-11-20 11:43:30 +0300
commitcd1124e76d740327be5d8f9ce3785ce1119daf4b (patch)
tree78b95de46f5597c51595e822bb1a1c1387c79fb6 /include/linux/can/dev/peak_canfd.h
parent69d98969a0540039fc04e0f22bbe9f41b0a13d66 (diff)
downloadlinux-cd1124e76d740327be5d8f9ce3785ce1119daf4b.tar.xz
can: remove obsolete get_canfd_dlc() macro
The macro was always used together with can_dlc2len() which sanitizes the given dlc value on its own. Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net> Link: https://lore.kernel.org/r/20201110101852.1973-4-socketcan@hartkopp.net Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'include/linux/can/dev/peak_canfd.h')
-rw-r--r--include/linux/can/dev/peak_canfd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/can/dev/peak_canfd.h b/include/linux/can/dev/peak_canfd.h
index 5fd627e9da19..f38772fd0c07 100644
--- a/include/linux/can/dev/peak_canfd.h
+++ b/include/linux/can/dev/peak_canfd.h
@@ -282,7 +282,7 @@ static inline int pucan_msg_get_channel(const struct pucan_rx_msg *msg)
}
/* return the dlc value from any received message channel_dlc field */
-static inline int pucan_msg_get_dlc(const struct pucan_rx_msg *msg)
+static inline u8 pucan_msg_get_dlc(const struct pucan_rx_msg *msg)
{
return msg->channel_dlc >> 4;
}