can: export a safe netdev_priv wrapper for candev
authorKurt Van Dijck <kurt.van.dijck@eia.be>
Tue, 18 Dec 2012 17:50:56 +0000 (18:50 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sat, 26 Jan 2013 15:58:59 +0000 (16:58 +0100)
commitbf03a5379cd3492fbeca42111340581ba9dee0b8
treec4a4a93c0645d66a0dcb8f718739696b4240c8ab
parent996a953de02ffb852c9ac736f4e892008ed68884
can: export a safe netdev_priv wrapper for candev

In net_device notifier calls, it was impossible to determine
if a CAN device is based on candev in a safe way.
This patch adds such test in order to access candev storage
from within those notifiers.

Signed-off-by: Kurt Van Dijck <kurt.van.dijck@eia.be>
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Fabio Baltieri <fabio.baltieri@gmail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev.c
include/linux/can/dev.h