]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
serial: 8250: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:45:56 +0000 (11:45 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 10:19:02 +0000 (11:19 +0100)
commit6bf9bb76b3af17f1fbfe76e8d70528e939511801
tree23701a01d59e1b3fbfdb6b608c07161c9975d605
parent9fdf17c5aa2ccd9f7e6cf23c01f79a1541a9f932
serial: 8250: 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/991926d130cc272df30d226760d5d74187991669.1738746904.git.namcao@linutronix.de
drivers/tty/serial/8250/8250_bcm7271.c
drivers/tty/serial/8250/8250_port.c