ASoC: Let snd_soc_platform subclass snd_soc_component
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 18 Mar 2014 08:02:12 +0000 (09:02 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 14 Apr 2014 16:22:44 +0000 (17:22 +0100)
commitb37f1d123c69c0d7730704d65b83eaac780c0e3b
treef7e175bec547275fa4785efaea33690df97d472f
parent98e639fb8a3ed1bf2bd512626c3cfc2992a57113
ASoC: Let snd_soc_platform subclass snd_soc_component

There is an increasing amount of code that is very similar between platforms,
CODECS and other components. Making platforms a component will allow us to
share this code. For now the patch just adds component and component_driver
fields to the platform and platform_driver structs and registers the platform as
a component. Followup patches will be used to consolidate code between the
different types of components.

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