ASoC: Move name and id from CODEC/platform to component

The component struct already has a name and id field which are initialized to
the same values as the same fields in the CODEC and platform structs. So remove
them from the CODEC and platform structs and used the ones from the component
struct instead.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
Lars-Peter Clausen
2014-06-16 18:13:02 +02:00
committed by Mark Brown
parent 94f99c875c
commit f4333203ec
8 changed files with 38 additions and 54 deletions

View File

@@ -710,8 +710,6 @@ struct snd_soc_component {
/* SoC Audio Codec device */
struct snd_soc_codec {
const char *name;
int id;
struct device *dev;
const struct snd_soc_codec_driver *driver;
@@ -848,8 +846,6 @@ struct snd_soc_platform_driver {
};
struct snd_soc_platform {
const char *name;
int id;
struct device *dev;
const struct snd_soc_platform_driver *driver;