From: Kuninori Morimoto Date: Thu, 14 Mar 2013 07:18:41 +0000 (-0700) Subject: ASoC: add .name for snd_soc_component_driver X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=61782e4f5eb593958582524aad9b14dc98b1b56c;p=openwrt%2Fstaging%2Fblogic.git ASoC: add .name for snd_soc_component_driver 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 Signed-off-by: Mark Brown --- diff --git a/include/sound/soc.h b/include/sound/soc.h index 8c46d0a7e2c0..44c9cbdc9fa2 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -848,6 +848,7 @@ struct snd_soc_platform { }; struct snd_soc_component_driver { + const char *name; }; struct snd_soc_component {