Searched hist:"9 cf670dbe69d11c6f29284aa80d78741f038ecd4" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/can/dev/ |
H A D | bittiming.c | diff 9cf670dbe69d11c6f29284aa80d78741f038ecd4 Tue Jan 31 10:37:39 CST 2023 Marc Kleine-Budde <mkl@pengutronix.de> can: bittiming: can_fixup_bittiming(): use CAN_SYNC_SEG instead of 1
Commit 1c47fa6b31c2 ("can: dev: add a helper function to calculate the duration of one bit") made the constant CAN_SYNC_SEG available in a header file.
The magic number 1 in can_fixup_bittiming() represents the width of the sync segment, replace it by CAN_SYNC_SEG to make the code more readable.
Link: https://lore.kernel.org/all/20230202110854.2318594-3-mkl@pengutronix.de Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|