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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:16:19 +0000 (19:16 +0100)
commitaf6f6ff3a78c005b37aaa3ff31840fb13f2e51db
tree267d996b66dd5cc723a146e371ef9261f6e6ba8c
parent7b697bb86020d5e3ec255ecfa0f6f79628cf1823
can: bittiming: can_fixup_bittiming(): change type of tseg1 and alltseg to unsigned int

[ Upstream commit e346290439609a8ac67122418ca2efbad8d0a7e7 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/can/dev/bittiming.c