]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ntb: ntb_pingpong: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:46:08 +0000 (11:46 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 10:19:04 +0000 (11:19 +0100)
commitabeebe8889b732b2de3c5c098350f51bc5204069
tree77046b38de9503ee8a3ba85690baf9f82c4c117b
parent5f8401cf7b3af468b29770d31cc993c2b6e5f027
ntb: ntb_pingpong: 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>
Acked-by: Zack Rusin <zack.rusin@broadcom.com>
Link: https://lore.kernel.org/all/2b179e16ab830611fdcb09a33a5a531c9800679b.1738746904.git.namcao@linutronix.de
drivers/ntb/test/ntb_pingpong.c