]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
can: dev: make can_get_relative_tdco() FD agnostic and move it to bittiming.h
authorVincent Mailhol <mailhol@kernel.org>
Tue, 23 Sep 2025 06:58:27 +0000 (15:58 +0900)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 24 Sep 2025 15:09:44 +0000 (17:09 +0200)
commit7208385df7846d30e29febc6c6280cb32e91ee82
treeba51074995b5cd56b751f2a1d342cd5e07ab2d3a
parentcc470fcf1d59f9d6186810ea5253da49a4f85f83
can: dev: make can_get_relative_tdco() FD agnostic and move it to bittiming.h

can_get_relative_tdco() needs to access can_priv->fd making it
specific to CAN FD. Change the function parameter from struct can_priv
to struct data_bittiming_params. This way, the function becomes CAN FD
agnostic and can be reused later on for the CAN XL TDC.

Now that we dropped the dependency on struct can_priv, also move
can_get_relative_tdco() back to bittiming.h where it was meant to
belong to.

Signed-off-by: Vincent Mailhol <mailhol@kernel.org>
Link: https://patch.msgid.link/20250923-canxl-netlink-prep-v4-2-e720d28f66fe@kernel.org
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
include/linux/can/bittiming.h
include/linux/can/dev.h