]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
watchdog: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:39:07 +0000 (11:39 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 09:32:33 +0000 (10:32 +0100)
commitd2254b0643222ffa7e4e7ac0ae8aa0e4cbf6d09a
tree814c3e747ffcbdd7ba4fea4dae988fd426948401
parent1654eba8f74d1fcb95dd63e549c621722adc2689
watchdog: 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/a5c62f2b5e1ea1cf4d32f37bc2d21a8eeab2f875.1738746821.git.namcao@linutronix.de
drivers/watchdog/softdog.c
drivers/watchdog/watchdog_dev.c
drivers/watchdog/watchdog_hrtimer_pretimeout.c
kernel/watchdog.c