]> git.baikalelectronics.ru Git - kernel.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)
commit7d78a4e69f63aab1a40994dd3abc7f679ac2623b
treeea1071796c9622ef568b12058de6b308032b918b
parent46bbd6f0faec63d1ba17ea79c1933b82ed4818d0
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