diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2011-04-30 22:46:12 +0400 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2011-06-06 13:01:32 +0400 |
commit | 267cbe047cb4f6a3a6337029fc60862be1cf437d (patch) | |
tree | aa1f5a902d846d9c735c39316c85e77f8e4af867 /drivers/net/can/at91_can.c | |
parent | 9c2e0a6d2f7b7c76e0cbc42a8da99fd732f0fdfa (diff) | |
download | linux-267cbe047cb4f6a3a6337029fc60862be1cf437d.tar.xz |
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>
Diffstat (limited to 'drivers/net/can/at91_can.c')
-rw-r--r-- | drivers/net/can/at91_can.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/can/at91_can.c b/drivers/net/can/at91_can.c index 716f22bf3d2f..9ce00fa90d96 100644 --- a/drivers/net/can/at91_can.c +++ b/drivers/net/can/at91_can.c @@ -47,11 +47,10 @@ * RX/TX Mailbox split * don't dare to touch */ -#define AT91_MB_RX_NUM 11 #define AT91_MB_TX_SHIFT 2 #define AT91_MB_RX_FIRST 1 -#define AT91_MB_RX_LAST (AT91_MB_RX_FIRST + AT91_MB_RX_NUM - 1) +#define AT91_MB_RX_LAST 11 #define AT91_MB_RX_MASK(i) ((1 << (i)) - 1) #define AT91_MB_RX_SPLIT 8 |