diff options
| author | 2014-02-28 16:36:21 +0100 | |
|---|---|---|
| committer | 2014-03-07 09:18:21 +0100 | |
| commit | d5298dffebae76810a6a942bc6467f893bc11eee (patch) | |
| tree | 7f9ccb872c6e0f2415595d8ea602121634f1a1df /include/linux | |
| parent | can: only send bitrate data via netlink when available (diff) | |
| download | linux-dev-d5298dffebae76810a6a942bc6467f893bc11eee.tar.xz linux-dev-d5298dffebae76810a6a942bc6467f893bc11eee.zip | |
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')
0 files changed, 0 insertions, 0 deletions
