ASoC: soc-dai.h: merge DAI call back functions into ops
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 8 Aug 2023 22:54:50 +0000 (22:54 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 14 Aug 2023 12:10:00 +0000 (13:10 +0100)
commit624fee45111d587ab346b2fc3bcc316615fd97e8
tree9f348d42944f5136ba8705693a09666827bd18c1
parent85cc1ee9505e0b458254a54ca053dabf650fd266
ASoC: soc-dai.h: merge DAI call back functions into ops

snd_soc_dai_driver has .ops for call back functions (A), but it also
has other call back functions (B). It is duplicated and confusable.

struct snd_soc_dai_driver {
...
 ^ int (*probe)(...);
 | int (*remove)(...);
(B) int (*compress_new)(...);
 | int (*pcm_new)(...);
 v ...
(A) const struct snd_soc_dai_ops *ops;
...
}

This patch merges (B) into (A).

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87v8dpb0w6.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-dai.h
sound/soc/generic/audio-graph-card.c
sound/soc/soc-core.c
sound/soc/soc-dai.c