summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Jocic <martin.jocic@kvaser.com>2024-06-14 18:15:21 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2024-06-21 10:45:27 +0300
commit0132a05df1e0119286f51bf757759a7f8e6edaa5 (patch)
treee418a4d17e0b5fe0e6f1f199fe7d09479a67423b
parent11d186697ceb10b68c6a1fd505635346b1ccd055 (diff)
downloadlinux-0132a05df1e0119286f51bf757759a7f8e6edaa5.tar.xz
can: kvaser_pciefd: Add inline
Make the short function kvaser_pciefd_set_tx_irq inline. This function is effectively three lines long and therefore inlining it should be OK according to rule #15 of the Linux kernel coding style. Signed-off-by: Martin Jocic <martin.jocic@kvaser.com> Link: https://lore.kernel.org/all/20240614151524.2718287-5-martin.jocic@kvaser.com Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r--drivers/net/can/kvaser_pciefd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/kvaser_pciefd.c b/drivers/net/can/kvaser_pciefd.c
index 8c9abc702b24..3d40d7b3d64c 100644
--- a/drivers/net/can/kvaser_pciefd.c
+++ b/drivers/net/can/kvaser_pciefd.c
@@ -550,7 +550,7 @@ static void kvaser_pciefd_disable_err_gen(struct kvaser_pciefd_can *can)
spin_unlock_irqrestore(&can->lock, irq);
}
-static void kvaser_pciefd_set_tx_irq(struct kvaser_pciefd_can *can)
+static inline void kvaser_pciefd_set_tx_irq(struct kvaser_pciefd_can *can)
{
u32 msk;