[PATCH 3.16 280/366] can: dev: Consolidate and unify state change handling