From: Andri Yngvason Date: Wed, 3 Dec 2014 17:54:13 +0000 (+0000) Subject: can: dev: Consolidate and unify state change handling X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~33^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bac78aabcfece0c493b2ad824c68fbdc20448cbc;p=pandora-kernel.git can: dev: Consolidate and unify state change handling The handling of can error states is different between platforms. This is an attempt to correct that problem. I've moved this handling into a generic function for changing the error state. This ensures that error state changes are handled the same way everywhere (where this function is used). This new mechanism also adds reverse state transitioning in error frames, i.e. the user will be notified through the socket interface when the state goes down. Signed-off-by: Andri Yngvason Acked-by: Wolfgang Grandegger Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed