]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwrng: timeriomem: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:39:15 +0000 (11:39 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 09:32:34 +0000 (10:32 +0100)
commit8030d4673e9957df30a8a0fa4228917b954f71c0
treeb6bacc57e44c63a0bf37f4c65660ffeb65c3de56
parent68d3de7fc49c326205811a23d0a146feed0d4fee
hwrng: timeriomem: 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/010640f1668d40894a1721037c56f7a684dbcc5f.1738746821.git.namcao@linutronix.de
drivers/char/hw_random/timeriomem-rng.c