]> git.baikalelectronics.ru Git - kernel.git/commit
can: provide a separate bittiming_const parameter to bittiming functions
authorOliver Hartkopp <socketcan@hartkopp.net>
Fri, 28 Feb 2014 15:36:22 +0000 (16:36 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 7 Mar 2014 08:18:22 +0000 (09:18 +0100)
commitfdef65fa698deb3daae369ff7264f385e30695ad
treedab3fbc1e164cf04748bb331715ce9261c16a3c5
parent45ee353fe75eaa875fa8cb5dd7291f1674e93af4
can: provide a separate bittiming_const parameter to bittiming functions

As the bittiming calculation functions are to be used with different
bittiming_const structures for CAN and CAN FD the direct reference to
priv->bittiming_const inside these functions has to be removed.

Also moved the check for existing bittiming const to one place.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Acked-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev.c