]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netdev: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:43:21 +0000 (11:43 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 09:35:44 +0000 (10:35 +0100)
commitfe0b776543e986249f48611387c847e5564a3647
tree5076a19eded10af3d3b1995696ed7e450ed613ba
parent8030d4673e9957df30a8a0fa4228917b954f71c0
netdev: 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>
Link: https://lore.kernel.org/all/861d9b287f2b5206b853dbcc0f302127f2a7f8ac.1738746872.git.namcao@linutronix.de
net/core/dev.c