OSDN Git Service

ASoC: jz4740-i2s: Avoid passing enum as match data
authorPaul Cercueil <paul@crapouillou.net>
Fri, 6 Mar 2020 22:29:29 +0000 (23:29 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 9 Mar 2020 14:25:06 +0000 (14:25 +0000)
commit62f9ed5f8768d2425461737d77b83f888b525c06
tree5349db5759472ae4794dd69f697b60e577762c4a
parenta42d9ba15cbf3e84307906db65fc598a8b73e2f1
ASoC: jz4740-i2s: Avoid passing enum as match data

Instead of passing an enum as match data, and checking its value in the
probe to register one or the other dai, pass a pointer to a struct
i2s_soc_info, which contains all the information relative to one SoC.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20200306222931.39664-4-paul@crapouillou.net
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/jz4740/jz4740-i2s.c