can: kvaser_pciefd: Use FIELD_{GET,PREP} and GENMASK where appropriate
authorJimmy Assarsson <extja@kvaser.com>
Mon, 29 May 2023 13:42:45 +0000 (15:42 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 22 Jun 2023 07:44:29 +0000 (09:44 +0200)
commit954fb21268dd59a911dd0b493249eabfa03d0567
treecfcf1f291b6e5b6baaed07acec0d500722119b21
parent69335013c4511cf99d3e338d369ccb37d30d6fee
can: kvaser_pciefd: Use FIELD_{GET,PREP} and GENMASK where appropriate

Replace opencoded masking and shifting, with GENMASK, FIELD_GET and
FIELD_PREP macros.

Suggested-by: Vincent MAILHOL <mailhol.vincent@wanadoo.fr>
Signed-off-by: Jimmy Assarsson <extja@kvaser.com>
Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/all/20230529134248.752036-12-extja@kvaser.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/kvaser_pciefd.c