can: flexcan: calculate default value for imask1 during runtime
authorMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 4 Aug 2015 11:46:10 +0000 (13:46 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 6 Feb 2017 14:13:36 +0000 (15:13 +0100)
commit28ac7dcd5b1354e46f5f28a53b5a6b443fcc88ed
tree0bc0aa5e1690d64c9762af01c8c0a2e75550af35
parentdd2f122a96ea041679f46c063a18145a7cf6ff5f
can: flexcan: calculate default value for imask1 during runtime

This patch converts the define FLEXCAN_IFLAG_DEFAULT into the runtime
calculated value priv->reg_imask1_default. This is a preparation patch to make
the TX mailbox selectable during runtime, too.

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