]> git.baikalelectronics.ru Git - kernel.git/commit
can: at91_can: clean up usage of AT91_MB_RX_FIRST and AT91_MB_RX_NUM
authorMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 6 Jan 2011 08:58:42 +0000 (09:58 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 24 Jan 2011 12:22:02 +0000 (13:22 +0100)
commitcfdcf7eea00fbb495279a5f85977fd82fd0cabba
tree266e422c2c312164fb6198c8c0158d64ce7c41b5
parent8454788220a190af69f4968a817df4f15b3f75b3
can: at91_can: clean up usage of AT91_MB_RX_FIRST and AT91_MB_RX_NUM

This patch cleans up the usage of two macros which specify the mailbox
usage. AT91_MB_RX_FIRST and AT91_MB_RX_NUM define the first and the
number of RX mailboxes. The current driver uses these variables in an
unclean way; assuming that AT91_MB_RX_FIRST is 0;

This patch cleans up the usage of these macros, no longer assuming
AT91_MB_RX_FIRST == 0.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>
drivers/net/can/at91_can.c