ASoC: add .name for snd_soc_component_driver
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 14 Mar 2013 07:18:41 +0000 (00:18 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 15 Mar 2013 01:24:57 +0000 (01:24 +0000)
This patch adds .name member on snd_soc_component_driver.
But this patch doesn't care about whether cmpnt_drv was NULL,
and/or its name was NULL in snd_soc_register_component()
at this point.

Because, it is easy to switch over to
snd_soc_register_component() from snd_soc_register_dais()
if it doesn't care cmpnt_drv was NULL.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc.h

index 8c46d0a7e2c0a10147c837625f86e563b01d997c..44c9cbdc9fa24b8ea54195d45447a30427273720 100644 (file)
@@ -848,6 +848,7 @@ struct snd_soc_platform {
 };
 
 struct snd_soc_component_driver {
+       const char *name;
 };
 
 struct snd_soc_component {