]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ata: pata_octeon_cf: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:39:10 +0000 (11:39 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 09:32:34 +0000 (10:32 +0100)
commit32539b780c4fc3641a37ad9cb6134d72b5c8cae9
tree4e80ab5980c46233fb129c5c73dbe9064f07ef50
parent2414f15910c50a714a4f9aa5aa874f0682648536
ata: pata_octeon_cf: 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: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/all/a36ae1e4be26f8359bf2777b1813bbf4d7a7983f.1738746821.git.namcao@linutronix.de
drivers/ata/pata_octeon_cf.c