can: at91_can: directly define AT91_MB_RX_LAST
authorMarc Kleine-Budde <mkl@pengutronix.de>
Sat, 30 Apr 2011 18:46:12 +0000 (20:46 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 6 Jun 2011 09:01:32 +0000 (11:01 +0200)
commit267cbe047cb4f6a3a6337029fc60862be1cf437d
treeaa1f5a902d846d9c735c39316c85e77f8e4af867
parent9c2e0a6d2f7b7c76e0cbc42a8da99fd732f0fdfa
can: at91_can: directly define AT91_MB_RX_LAST

...instead of deriving it from AT91_MB_RX_FIRST and AT91_MB_RX_NUM.
This removes a level of computation, when switching the driver from
compile time constants to runtime values.

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