can: Proper ctrlmode handling for CAN devices
authorChristian Pellegrin <chripell@fsfe.org>
Thu, 14 Jan 2010 07:08:34 +0000 (07:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jan 2010 09:39:17 +0000 (01:39 -0800)
commitad72c347e56bf3a0231b9d686e17764157d2961c
tree4db03a0abae50edfaf996f43e3f717a57b776fbd
parent1954dc11776ef8c06263ba4cd21bf4d25c79a19c
can: Proper ctrlmode handling for CAN devices

This patch adds error checking of ctrlmode values for CAN devices. As
an example all availabe bits are implemented in the mcp251x driver.

Signed-off-by: Christian Pellegrin <chripell@fsfe.org>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/at91_can.c
drivers/net/can/bfin_can.c
drivers/net/can/dev.c
drivers/net/can/mcp251x.c
drivers/net/can/mscan/mscan.c
drivers/net/can/sja1000/sja1000.c
drivers/net/can/ti_hecc.c
drivers/net/can/usb/ems_usb.c
include/linux/can/dev.h