From: Marc Kleine-Budde Date: Thu, 21 Oct 2010 16:39:26 +0000 (+0200) Subject: can: janz-ican3: cleanup of ican3_to_can_frame and can_frame_to_ican3 X-Git-Tag: v3.6-rc1~125^2~56^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e4d6909a273ada78cf48379e478855bc13ae0cb;p=pandora-kernel.git can: janz-ican3: cleanup of ican3_to_can_frame and can_frame_to_ican3 This patch cleans up the ICAN3 to Linux CAN frame and vice versa conversion functions: - RX: Use get_can_dlc() to limit the dlc value. - RX+TX: Don't copy the whole frame, only copy the amount of bytes specified in cf->can_dlc. Acked-by: Ira W. Snyder Tested-by: Ira W. Snyder Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed