can: flexcan: remove not needed struct flexcan_priv::tx_mb and struct flexcan_priv...
authorMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 9 Nov 2018 14:01:50 +0000 (15:01 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 9 Nov 2018 16:20:29 +0000 (17:20 +0100)
commite05237f9da42ee52e73acea0bb082d788e111229
treeb7b5e07f68735bb450b12124a8982b4b7e0e13d3
parentcbffaf7aa09edbaea2bc7dc440c945297095e2fd
can: flexcan: remove not needed struct flexcan_priv::tx_mb and struct flexcan_priv::tx_mb_idx

The previous patch changes the TX path to always use the last mailbox
regardless of the used offload scheme (rx-fifo or timestamp based). This
means members "tx_mb" and "tx_mb_idx" of the struct flexcan_priv don't
depend on the offload scheme, so replace them by compile time constants.

Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c