]> git.itanic.dy.fi Git - linux-stable/commit
can: bittiming: factor out can_sjw_set_default() and can_sjw_check()
authorMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 27 Sep 2022 15:07:07 +0000 (17:07 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 6 Feb 2023 12:57:26 +0000 (13:57 +0100)
commit5988bf737deed86d6186a21e73e2fc253a4ff466
tree01a7b4ea6092f729a00c69c0edc515a4142d4365
parent286c0e09e8e07de0f116a01aa234b05d9956dcf5
can: bittiming: factor out can_sjw_set_default() and can_sjw_check()

Factor out the functionality of assigning a SJW default value into
can_sjw_set_default() and the checking the SJW limits into
can_sjw_check().

This functions will be improved and called from a different function
in the following patches.

Link: https://lore.kernel.org/all/20230202110854.2318594-11-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev/bittiming.c
include/linux/can/bittiming.h