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>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/78e8c0d1b38998eab983fad265751ed13c2b9009.1738746904.git.namcao@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Nam Cao and committed by
Greg Kroah-Hartman
8cb44188 d45545c3

+4 -5
+4 -5
drivers/tty/serial/amba-pl011.c
··· 2918 2918 return -EINVAL; 2919 2919 } 2920 2920 } 2921 - 2922 - hrtimer_init(&uap->trigger_start_tx, CLOCK_MONOTONIC, HRTIMER_MODE_REL); 2923 - hrtimer_init(&uap->trigger_stop_tx, CLOCK_MONOTONIC, HRTIMER_MODE_REL); 2924 - uap->trigger_start_tx.function = pl011_trigger_start_tx; 2925 - uap->trigger_stop_tx.function = pl011_trigger_stop_tx; 2921 + hrtimer_setup(&uap->trigger_start_tx, pl011_trigger_start_tx, CLOCK_MONOTONIC, 2922 + HRTIMER_MODE_REL); 2923 + hrtimer_setup(&uap->trigger_stop_tx, pl011_trigger_stop_tx, CLOCK_MONOTONIC, 2924 + HRTIMER_MODE_REL); 2926 2925 2927 2926 ret = pl011_setup_port(&dev->dev, uap, &dev->res, portnr); 2928 2927 if (ret)