]> git.openfabrics.org - ~emulex/infiniband.git/commit
can: mcp251x: Don't use pdata->model for chip selection anymore
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 18 Oct 2010 13:00:18 +0000 (15:00 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 18 Oct 2010 13:16:08 +0000 (15:16 +0200)
commitf1f8c6cbe6f08f93ac2a4ca19625891d8a82b7f8
tree0ed97a9e3ed0414f69a7ad65778ee4dbeb282642
parentd3cd15657516141adce387810be8cb377baf020e
can: mcp251x: Don't use pdata->model for chip selection anymore

Since commit e446630c960946b5c1762e4eadb618becef599e7, i.e. v2.6.35-rc1,
the mcp251x chip model can be selected via the modalias member in the
struct spi_board_info. The driver stores the actual model in the
struct mcp251x_platform_data.

From the driver point of view the platform_data should be read only.
Since all in-tree users of the mcp251x have already been converted to
the modalias method, this patch moves the "model" member from the
struct mcp251x_platform_data to the driver's private data structure.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: Christian Pellegrin <chripell@fsfe.org>
Cc: Marc Zyngier <maz@misterjones.org>
drivers/net/can/mcp251x.c
include/linux/can/platform/mcp251x.h