]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: simple-card-utils: share asoc_simple_card_init_priv()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 20 Mar 2019 04:56:26 +0000 (13:56 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 21 Mar 2019 14:52:24 +0000 (14:52 +0000)
commita0cdd3cb5e75ffcf810c3f4ebf6ada2482a95ad6
tree7e28f41ca4b7a8af17b743aaddb2652554e34420
parent091589b1e031945f9ea8a149bba4d987eae5b0f5
ASoC: simple-card-utils: share asoc_simple_card_init_priv()

The difference between simple-card / audio-graph are just using
OF graph style, or not. In other words, other things should be same.
This means, simple-card/audio-graph common functions should be
implemented at simple-card-utils, and its own functions should be
implemented at each files.

Current simple-card / audio-graph are initializing each priv,
but it is same operation.
This patch adds new asoc_simple_card_init_priv() and initialize
priv by same operation.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/simple_card_utils.h
sound/soc/generic/audio-graph-card.c
sound/soc/generic/simple-card-utils.c
sound/soc/generic/simple-card.c