]> git.baikalelectronics.ru Git - kernel.git/commit
can: at91_can: add id_table and convert prime mailbox constats to functions
authorMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 3 May 2011 15:41:09 +0000 (17:41 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 6 Jun 2011 12:20:54 +0000 (14:20 +0200)
commite611819b4c9a26fbf0261a9a884002e35e30580d
treedeee6ecb0600187bf0c31b7a635eceaf9f2e2b04
parentce65d7cd317a4769a80a754cd7231850b5534480
can: at91_can: add id_table and convert prime mailbox constats to functions

This is the second of two patches converting the at91_can driver from a
compile time mailbox setup to a dynamic one.

This patch first adds a id_table to the platform driver. Depending on the
driver_data the constants for the mailbox setup is selected. Then all
remaining prime mailbox constants are converted to functions, using the
run time selected mailbox constants.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/at91_can.c