ALSA: emux: 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:
Kees Cook
2017-10-24 08:34:40 -07:00
committed by Takashi Iwai
parent bc47ba90b0
commit 08352b200b
3 changed files with 4 additions and 4 deletions

View File

@@ -202,9 +202,9 @@ snd_emux_note_off(void *p, int note, int vel, struct snd_midi_channel *chan)
*
* release the pending note-offs
*/
void snd_emux_timer_callback(unsigned long data)
void snd_emux_timer_callback(struct timer_list *t)
{
struct snd_emux *emu = (struct snd_emux *) data;
struct snd_emux *emu = from_timer(emu, t, tlist);
struct snd_emux_voice *vp;
unsigned long flags;
int ch, do_again = 0;