mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-06 06:49:53 +02:00
Merge pull request #315 from marckleinebudde/can-calc-bit-timing
can-calc-bit-timing: can_fixup_bittiming(): change type of tseg1 and alltseg to unsigned int
This commit is contained in:
@@ -695,7 +695,7 @@ static int can_fixup_bittiming(struct net_device *dev, struct can_bittiming *bt,
|
|||||||
const struct can_bittiming_const *btc)
|
const struct can_bittiming_const *btc)
|
||||||
{
|
{
|
||||||
struct can_priv *priv = netdev_priv(dev);
|
struct can_priv *priv = netdev_priv(dev);
|
||||||
int tseg1, alltseg;
|
unsigned int tseg1, alltseg;
|
||||||
u64 brp64, v64;
|
u64 brp64, v64;
|
||||||
|
|
||||||
tseg1 = bt->prop_seg + bt->phase_seg1;
|
tseg1 = bt->prop_seg + bt->phase_seg1;
|
||||||
|
|||||||
Reference in New Issue
Block a user