Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

serial: amba-pl011: 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/78e8c0d1b38998eab983fad265751ed13c2b9009.1738746904.git.namcao@linutronix.de

authored by

Nam Cao and committed by
Thomas Gleixner
c5f0fa16 6bf9bb76

+4 -5
+4 -5
drivers/tty/serial/amba-pl011.c
··· 2867 2867 return -EINVAL; 2868 2868 } 2869 2869 } 2870 - 2871 - hrtimer_init(&uap->trigger_start_tx, CLOCK_MONOTONIC, HRTIMER_MODE_REL); 2872 - hrtimer_init(&uap->trigger_stop_tx, CLOCK_MONOTONIC, HRTIMER_MODE_REL); 2873 - uap->trigger_start_tx.function = pl011_trigger_start_tx; 2874 - uap->trigger_stop_tx.function = pl011_trigger_stop_tx; 2870 + hrtimer_setup(&uap->trigger_start_tx, pl011_trigger_start_tx, CLOCK_MONOTONIC, 2871 + HRTIMER_MODE_REL); 2872 + hrtimer_setup(&uap->trigger_stop_tx, pl011_trigger_stop_tx, CLOCK_MONOTONIC, 2873 + HRTIMER_MODE_REL); 2875 2874 2876 2875 ret = pl011_setup_port(&dev->dev, uap, &dev->res, portnr); 2877 2876 if (ret)