Skip to content

Commit

Permalink
can: m_can: use bits.h macros for all regmasks
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Torin Cooper-Bennun authored and Marc Kleine-Budde committed May 27, 2021
1 parent 2722ac9 commit 2077994
Showing 1 changed file with 86 additions and 113 deletions.
Loading

0 comments on commit 2077994

Please sign in to comment.