]> git.baikalelectronics.ru Git - kernel.git/commit
can: bittiming: can_fixup_bittiming(): change type of tseg1 and alltseg to unsigned int
authorMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 13 Oct 2021 13:00:10 +0000 (15:00 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 24 Oct 2021 14:24:28 +0000 (16:24 +0200)
commit10f20d36d46db25f2c1681ee409f5af1f9bcaf75
tree71fae88d60932eef1a9696e2e10372d5c0c51baa
parent8ffe226280548b29f0ac896ceb43ad232c723d6f
can: bittiming: can_fixup_bittiming(): change type of tseg1 and alltseg to unsigned int

All timing calculation is done with unsigned integers, so change type
of tseg1 and alltseg to unsigned int, too.

Link: https://lore.kernel.org/all/20211013130653.1513627-1-mkl@pengutronix.de
Link: https://github.com/linux-can/can-utils/pull/314
Reported-by: Gary Bisson <bisson.gary@gmail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev/bittiming.c