]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
can: mcp251xfd: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:43:26 +0000 (11:43 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 09:35:45 +0000 (10:35 +0100)
commit881ec0c6db17ec6bacd968d6899508be3cf00ff4
tree78e7f3fe4db03fab9416c88d31d25dbfdd4669c2
parente0eaefcd7e4449a444b557578b60a988636b4a71
can: mcp251xfd: Switch to use hrtimer_setup()

hrtimer_setup() takes the callback function pointer as argument and
initializes the timer completely.

Replace hrtimer_init() and the open coded initialization of
hrtimer::function with the new setup mechanism.

Patch was created by using Coccinelle.

Signed-off-by: Nam Cao <namcao@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Marc Kleine-Budde <mkl@pengutronix.de>
Link: https://lore.kernel.org/all/af32e1b1814263485be17bca9707d555f857c53f.1738746872.git.namcao@linutronix.de
drivers/net/can/spi/mcp251xfd/mcp251xfd-ring.c