Skip to contentSkip to conversation

ASoC: Fix WM8978/migor driver name conflict

PATCH In review Mark Brown 2 participants 2 messages Sep 19, 2010 – Sep 20, 2010

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: Fix WM8978/migor driver name conflict

Standardise on 'wm8978' as the name for the CODEC.

---
 sound/soc/codecs/wm8978.c |    2 +-
 sound/soc/sh/migor.c      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/wm8978.c +1 -1
index 676a430..13b979a 100644
@@ -1038,7 +1038,7 @@ MODULE_DEVICE_TABLE(i2c, wm8978_i2c_id);
 
 static struct i2c_driver wm8978_i2c_driver = {
 	.driver = {
-		.name = "WM8978-codec",
+		.name = "wm8978",
 		.owner = THIS_MODULE,
 	},
 	.probe =    wm8978_i2c_probe,
sound/soc/sh/migor.c +1 -1
index f462017..ac6c49c 100644
@@ -156,7 +156,7 @@ static struct snd_soc_dai_link migor_dai = {
 	.cpu_dai_name = "siu-i2s-dai",
 	.codec_dai_name = "wm8978-hifi",
 	.platform_name = "siu-pcm-audio",
-	.codec_name = "wm8978-codec.0-001a",
+	.codec_name = "wm8978.0-001a",
 	.ops = &migor_dai_ops,
 	.init = migor_dai_init,
 };
Signature · 1 line
1.7.1
Acked-by on v1 1/1
#1 lore raw
Quoted 27 lines · Mark Brown

Standardise on 'wm8978' as the name for the CODEC.

---
 sound/soc/codecs/wm8978.c |    2 +-
 sound/soc/sh/migor.c      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/wm8978.c +1 -1
index 676a430..13b979a 100644
@@ -1038,7 +1038,7 @@ MODULE_DEVICE_TABLE(i2c, wm8978_i2c_id);
 
 static struct i2c_driver wm8978_i2c_driver = {
 	.driver = {
-		.name = "WM8978-codec",
+		.name = "wm8978",
 		.owner = THIS_MODULE,
 	},
 	.probe =    wm8978_i2c_probe,
sound/soc/sh/migor.c +0 -0
index f462017..ac6c49c 100644

sound/soc/sh/migor.c static struct snd_soc_dai_link migor_dai = { · line 162

Quoted 8 lines
sound/soc/sh/migor.c +1 -1
@@ -156,7 +156,7 @@ static struct snd_soc_dai_link migor_dai = {
 	.cpu_dai_name = "siu-i2s-dai",
 	.codec_dai_name = "wm8978-hifi",
 	.platform_name = "siu-pcm-audio",
-	.codec_name = "wm8978-codec.0-001a",
+	.codec_name = "wm8978.0-001a",
 	.ops = &migor_dai_ops,
 	.init = migor_dai_init,
 };
Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk