can: m_can: make TXESC, RXESC config more explicit
authorTorin Cooper-Bennun <torin@maxiluxsystems.com>
Tue, 4 May 2021 12:51:22 +0000 (13:51 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 27 May 2021 07:42:23 +0000 (09:42 +0200)
commit0f31571668914f421dab628c45eeb391aaa127ef
tree7ac590b6b17b3e0471ad93ab4b3b8ec2673625c3
parent38395f302f4d63b8373d2340fddd225f7b644882
can: m_can: make TXESC, RXESC config more explicit

Introduce masks for the three RXESC fields (RBDS, F1DS, F0DS) and the
one TXESC field (TBDS). Update m_can_chip_config() to explicitly set all
four fields to the 64-byte option (0x7) (and these defs are renamed to
be more concise).

This is an improvement in maintainability, and also makes it easier to
implement more flexible configuration of the M_CAN buffers in the
future.

Link: https://lore.kernel.org/r/20210504125123.500553-4-torin@maxiluxsystems.com
Signed-off-by: Torin Cooper-Bennun <torin@maxiluxsystems.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/m_can.c