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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:37:30 +0000 (09:37 +0100)
commitd5a9ba4324d5263b7b86cb8fd4779d3f159663db
tree87fe2f1c1fb1adb5feabf78c082aebf83706dfe5
parent24e5589791d09214e31335ae2b581c668d4803b7
can: flexcan: remove not needed struct flexcan_priv::tx_mb and struct flexcan_priv::tx_mb_idx

commit e05237f9da42ee52e73acea0bb082d788e111229 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/flexcan.c