]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: sparx5: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:43:32 +0000 (11:43 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 09:35:45 +0000 (10:35 +0100)
commit7b63b1dc473e5ad3c4c0f404d198e0c18dcbfa64
treefb73be1192a09290ab4c39d3feca66110cc54895
parent964177da435cc466c4ff4774f18e37aa03fafe4a
net: sparx5: 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.

Signed-off-by: Nam Cao <namcao@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/d8f0e09bfa4bd4850e363645cc634afeb5779b88.1738746872.git.namcao@linutronix.de
drivers/net/ethernet/microchip/sparx5/sparx5_packet.c