sparc/led: Convert timers to use timer_setup()
authorKees Cook <keescook@chromium.org>
Tue, 10 Oct 2017 04:26:26 +0000 (21:26 -0700)
committerKees Cook <keescook@chromium.org>
Thu, 2 Nov 2017 22:50:36 +0000 (15:50 -0700)
commitdb275f2a02cd35d7a53564100ccf18ccb8a1130d
treed00dbbd8a30f94d25cac23619fa7d3bd73194003
parenta66b899dfbb51201e6ee176d77f27885dc362fc6
sparc/led: 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. Adds a static variable to hold timeout
value.

Cc: "David S. Miller" <davem@davemloft.net>
Cc: Geliang Tang <geliangtang@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: sparclinux@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
arch/sparc/kernel/led.c