OSDN Git Service

can: c_can: Introduce c_can_driver_data structure
authorRoger Quadros <rogerq@ti.com>
Fri, 7 Nov 2014 14:49:16 +0000 (16:49 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 17 Nov 2014 11:19:26 +0000 (12:19 +0100)
commit15151090579cab7c49d8af54a52f798ce8bda001
treec3462e0d0f8bcd88c9c8580894e24fff4ae5fc55
parente7e26bc75ba58ab85f329787cb072cf67dd5407f
can: c_can: Introduce c_can_driver_data structure

We want to have more data than just can_dev_id to be present
in the driver data e.g. TI platforms need RAMINIT register
description. Introduce the c_can_driver_data structure and move
the can_dev_id into it.

Tidy up the way it is used on probe().

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/c_can/c_can.h
drivers/net/can/c_can/c_can_platform.c