]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
can: mcp251xfd: introduce and make use of mcp251xfd_is_fd_mode()
authorMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 22 Oct 2021 22:27:13 +0000 (00:27 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sat, 8 Jan 2022 19:17:42 +0000 (20:17 +0100)
commit3044a4f271d278858321675d367b37bcafca186c
treeea1071796c9622ef568b12058de6b308032b918b
parent55bc37c85587d0c53a666a685a49752e28a31396
can: mcp251xfd: introduce and make use of mcp251xfd_is_fd_mode()

This patch replaces the open coded check, if the chip's FIFOs are
configured for CAN-FD mode, by the newly introduced function
mcp251xfd_is_fd_mode().

Link: https://lore.kernel.org/all/20220105154300.1258636-14-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/spi/mcp251xfd/mcp251xfd-chip-fifo.c
drivers/net/can/spi/mcp251xfd/mcp251xfd-ring.c
drivers/net/can/spi/mcp251xfd/mcp251xfd.h