]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
serial: imx: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:45:58 +0000 (11:45 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 10:19:03 +0000 (11:19 +0100)
commit721c5bf65a1d19d2958a83c6eb7ddd8002b9026f
tree886ce53dfe2b082c73f405c576c008516e203382
parentc5f0fa1622f6fec7c461f2fe5b5d62229b4ae785
serial: imx: 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/ad27070bc67c13f8a9acbd5cbf4cbae72797e3e1.1738746904.git.namcao@linutronix.de
drivers/tty/serial/imx.c