OSDN Git Service

can: m_can: use bits.h macros for all regmasks
authorTorin Cooper-Bennun <torin@maxiluxsystems.com>
Tue, 4 May 2021 12:51:20 +0000 (13:51 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 27 May 2021 07:42:23 +0000 (09:42 +0200)
commit20779943a080c5ac9b9e291b76afbac12fdec023
treef981181aa7d0ea491b36ec8f45550501c9e597ac
parent2722ac986e93c4cabbefde299d01ed24db40a645
can: m_can: use bits.h macros for all regmasks

This updates m_can.c to exclusively use GENMASK, FIELD_GET, FIELD_PREP
and FIELD_MAX for regmask ops, as is convention in the current kernel
(far less error-prone, far more concise).

Link: https://lore.kernel.org/r/20210504125123.500553-2-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