]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PM / devfreq: rockchip-dfi: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:39:13 +0000 (11:39 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 09:32:34 +0000 (10:32 +0100)
commit4279d7054c871ed5e3d5de2b5948b24abba76c55
treeb3f1f2a70cd9f38755e3ba57d4f89bddadef2e6c
parentefad91a9836e3c26194a18947e0af7f575c254fb
PM / devfreq: rockchip-dfi: 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: Chanwoo Choi <cw00.choi@samsung.com>
Link: https://lore.kernel.org/all/dfb35fb45eacdba7b8767052aa8c29ca157ac1b0.1738746821.git.namcao@linutronix.de
drivers/devfreq/event/rockchip-dfi.c