ALSA: usb-audio: Convert timers to use timer_setup()
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@@ -199,9 +199,9 @@ static int line6_send_raw_message_async_part(struct message *msg,
|
||||
Setup and start timer.
|
||||
*/
|
||||
void line6_start_timer(struct timer_list *timer, unsigned long msecs,
|
||||
void (*function)(unsigned long), unsigned long data)
|
||||
void (*function)(struct timer_list *t))
|
||||
{
|
||||
setup_timer(timer, function, data);
|
||||
timer->function = (TIMER_FUNC_TYPE)function;
|
||||
mod_timer(timer, jiffies + msecs_to_jiffies(msecs));
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(line6_start_timer);
|
||||
|
Reference in New Issue
Block a user