]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: usbtest: Convert timers to use timer_setup()
authorKees Cook <keescook@chromium.org>
Mon, 23 Oct 2017 00:57:22 +0000 (17:57 -0700)
committerKees Cook <keescook@chromium.org>
Wed, 1 Nov 2017 18:44:52 +0000 (11:44 -0700)
commit7d221856add016ef6cc0f4c0cad8e5d2612feedb
treedf4201b5251737a21f46ab55e805b27bdd6e4475
parent254db5bd075427b0f71ea112b30c924fb22bd0fd
usb: usbtest: 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. Also adds missing call to
destroy_timer_on_stack();

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Felipe Balbi <felipe.balbi@linux.intel.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: "Gustavo A. R. Silva" <garsilva@embeddedor.com>
Cc: linux-usb@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/usbtest.c