]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
can: netlink: add can_validate_tdc()
authorVincent Mailhol <mailhol@kernel.org>
Tue, 23 Sep 2025 06:58:30 +0000 (15:58 +0900)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 24 Sep 2025 15:09:44 +0000 (17:09 +0200)
commitb23a8425cba5d7908d69f3bce8f3c697362b50ae
treebcff5ba4a5487e8861d19750a72f6052ee08b493
parentf5ae5a75412db0b8ded2342d409c7ba504eb198f
can: netlink: add can_validate_tdc()

Factorise the TDC validation out of can_validate() and move it in the
new can_validate_tdc() function. This is a preparation patch for the
introduction of CAN XL because this TDC validation will be reused
later on.

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