diff options
author | Oliver Hartkopp <socketcan@hartkopp.net> | 2014-02-28 16:36:21 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2014-03-07 09:18:21 +0100 |
commit | d5298dffebae76810a6a942bc6467f893bc11eee (patch) | |
tree | 7f9ccb872c6e0f2415595d8ea602121634f1a1df /include/linux/cpu.h | |
parent | b30749fdfb9b72f4b1f03673cb5e45b8d4331188 (diff) |
can: move sanity check for bitrate and tq into can_get_bittiming
This patch moves a sanity check in order to have a second user for CAN FD.
Also simplify the return value generation in can_get_bittiming() as only
correct return values of can_[calc|fixup]_bittiming() lead to a return value of
zero.
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>
Diffstat (limited to 'include/linux/cpu.h')
0 files changed, 0 insertions, 0 deletions