can: kvaser_pciefd: Refactor code
authorJimmy Assarsson <extja@kvaser.com>
Mon, 29 May 2023 13:42:47 +0000 (15:42 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 22 Jun 2023 07:44:29 +0000 (09:44 +0200)
commitf4845741e4220eecf96aa157cbb5ba34aaed995e
tree9778aff6144c645d1ecb46509535c6274b65368c
parentf07008a213640ba5389d924ad0e9e08ea3beed4a
can: kvaser_pciefd: Refactor code

Refactor code;
 - Format code
 - Rename variables and macros
 - Remove intermediate variables
 - Add/remove blank lines
 - Reduce scope of variables
 - Add helper functions

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