From: Oliver Hartkopp Date: Fri, 28 Feb 2014 15:36:21 +0000 (+0100) Subject: can: move sanity check for bitrate and tq into can_get_bittiming X-Git-Tag: v3.15-rc1~113^2~206^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5298dffebae76810a6a942bc6467f893bc11eee;p=pandora-kernel.git 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 Acked-by: Stephane Grosjean Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed