mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
serial: sh-sci: 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. Acked-by: Zack Rusin <zack.rusin@broadcom.com> Signed-off-by: Nam Cao <namcao@linutronix.de> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/r/c21664d013015584aebbb6bb8cedd748182cb551.1738746904.git.namcao@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
afa5166003
commit
7ba2facc3f
|
|
@ -1714,8 +1714,7 @@ static void sci_request_dma(struct uart_port *port)
|
|||
dma += s->buf_len_rx;
|
||||
}
|
||||
|
||||
hrtimer_init(&s->rx_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
|
||||
s->rx_timer.function = sci_dma_rx_timer_fn;
|
||||
hrtimer_setup(&s->rx_timer, sci_dma_rx_timer_fn, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
|
||||
|
||||
s->chan_rx_saved = s->chan_rx = chan;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user