Skip to content

Commit ce68de0

Browse files
covanamKAGA-KOKO
authored andcommitted
ASoC: fsl: imx-pcm-fiq: 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. Signed-off-by: Nam Cao <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Zack Rusin <[email protected]> Link: https://lore.kernel.org/all/ed4be9ec380a688291e3fc9b24f8c38a3f07a143.1738746904.git.namcao@linutronix.de
1 parent bbdafde commit ce68de0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sound/soc/fsl/imx-pcm-fiq.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ static int snd_imx_open(struct snd_soc_component *component,
185185

186186
atomic_set(&iprtd->playing, 0);
187187
atomic_set(&iprtd->capturing, 0);
188-
hrtimer_init(&iprtd->hrt, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
189-
iprtd->hrt.function = snd_hrtimer_callback;
188+
hrtimer_setup(&iprtd->hrt, snd_hrtimer_callback, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
190189

191190
ret = snd_pcm_hw_constraint_integer(substream->runtime,
192191
SNDRV_PCM_HW_PARAM_PERIODS);

0 commit comments

Comments
 (0)