ASoC: Pass CODEC to snd_soc_register_dais()
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 9 Mar 2014 16:41:46 +0000 (17:41 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 10 Mar 2014 12:17:54 +0000 (12:17 +0000)
commit6cc240f39d393c5878bc6cf053aa0fe8e3fe4260
treefe7fc6e546906ffe2a67f62276f9b1beba848813
parent32c9ba544b65991b14ede102928c552ed24d4827
ASoC: Pass CODEC to snd_soc_register_dais()

snd_soc_register_dais() looks up the CODEC that is registering the DAIs by
looping over all registered CODECs. This patch updates the code to
simply pass the CODEC that registers the DAIs to snd_soc_register_dais() thus
avoiding the lookup.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-core.c