ALSA: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:46:33 +0000 (11:46 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 10 Feb 2025 08:26:31 +0000 (09:26 +0100)
commit70e90680c2592c38c62e5716f1296a2d74bae7af
treed3271317e03f0dce0c12ea171183ad5efc5776f1
parentd7e2447a4d51de5c3c03e3b7892898e98ddd9769
ALSA: Switch to use hrtimer_setup()

hrtimer_setup() takes the callback function pointer as argument and
initializes the timer completely.

Replace hrtimer_init() and the open coded initialization of
hrtimer::function with the new setup mechanism.

Patch was created by using Coccinelle.

Acked-by: Zack Rusin <zack.rusin@broadcom.com>
Signed-off-by: Nam Cao <namcao@linutronix.de>
Cc: Takashi Iwai <tiwai@suse.com>
Link: https://patch.msgid.link/598031332ce738c82286a158cb66eb7e735b2e79.1738746904.git.namcao@linutronix.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/hrtimer.c
sound/drivers/dummy.c
sound/drivers/pcsp/pcsp.c
sound/sh/sh_dac_audio.c