]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:43:36 +0000 (11:43 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 09:35:46 +0000 (10:35 +0100)
commit78afb7fa96ed9742c09a033782f50908c3d8e3cf
tree84110155922f3d8539d148fb64ee39725c4b5a8b
parent3c85516612f8861cdfeefc300b7631f0d4797fbd
net: stmmac: 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/73598e0c22ca99ce7a0e863298a0e0902f4d6e1d.1738746872.git.namcao@linutronix.de
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c