can: kvaser_usb: Consolidate and unify state change handling
authorAhmed S. Darwish <ahmed.darwish@valeo.com>
Mon, 26 Jan 2015 05:29:15 +0000 (07:29 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 28 Jan 2015 12:39:37 +0000 (13:39 +0100)
commit96d7f10634e66b27e23854c774fbcc0a2a654e82
treef21dfcbeb5b0211caebc34f61df1a7929713ee6e
parent3b07a444ee48a8081d2ed3f0abeeabd038404ac1
can: kvaser_usb: Consolidate and unify state change handling

Replace most of the can interface's state and error counters
handling with the new can-dev can_change_state() mechanism.

Suggested-by: Andri Yngvason <andri.yngvason@marel.com>
Signed-off-by: Ahmed S. Darwish <ahmed.darwish@valeo.com>
Acked-by: Andri Yngvason <andri.yngvason@marel.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/kvaser_usb.c