]> asedeno.scripts.mit.edu Git - linux.git/commit
staging/irda-usb: Convert timers to use timer_setup()
authorKees Cook <keescook@chromium.org>
Wed, 18 Oct 2017 20:23:07 +0000 (13:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Oct 2017 12:42:50 +0000 (14:42 +0200)
commit3de1abef24a221880614e387e150c1fc7004bc23
tree124c871ac1b0eb37a9799e3481abd2e3030def6a
parent5eb54a9997596ce1192e3416ccacc9acd17c34ef
staging/irda-usb: 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. This requires adding a pointer to
hold the timer's target URB, as there won't be a way to pass this in the
future.

Cc: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/irda/drivers/irda-usb.c
drivers/staging/irda/drivers/irda-usb.h