Skip to contentSkip to conversation

ASoC: Blackfin: convert internal names from bf52x to bf5xx

PATCH In review Mike Frysinger 3 participants 5 messages Jun 20, 2009 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: Blackfin: convert internal names from bf52x to bf5xx

From: Barry Song <[email protected]>

These drivers aren't BF52x specific, so don't use bf52x in the names.

---
 sound/soc/blackfin/bf5xx-ad73311.c |   16 ++++++++--------
 sound/soc/blackfin/bf5xx-ssm2602.c |   16 ++++++++--------
 2 files changed, 16 insertions(+), 16 deletions(-)
sound/soc/blackfin/bf5xx-ad73311.c +8 -8
index edfbdc0..9825b71 100644
@@ -203,23 +203,23 @@ static struct snd_soc_device bf5xx_ad73311_snd_devdata = {
 	.codec_dev = &soc_codec_dev_ad73311,
 };
 
-static struct platform_device *bf52x_ad73311_snd_device;
+static struct platform_device *bf5xx_ad73311_snd_device;
 
 static int __init bf5xx_ad73311_init(void)
 {
 	int ret;
 
 	pr_debug("%s enter\n", __func__);
-	bf52x_ad73311_snd_device = platform_device_alloc("soc-audio", -1);
-	if (!bf52x_ad73311_snd_device)
+	bf5xx_ad73311_snd_device = platform_device_alloc("soc-audio", -1);
+	if (!bf5xx_ad73311_snd_device)
 		return -ENOMEM;
 
-	platform_set_drvdata(bf52x_ad73311_snd_device, &bf5xx_ad73311_snd_devdata);
-	bf5xx_ad73311_snd_devdata.dev = &bf52x_ad73311_snd_device->dev;
-	ret = platform_device_add(bf52x_ad73311_snd_device);
+	platform_set_drvdata(bf5xx_ad73311_snd_device, &bf5xx_ad73311_snd_devdata);
+	bf5xx_ad73311_snd_devdata.dev = &bf5xx_ad73311_snd_device->dev;
+	ret = platform_device_add(bf5xx_ad73311_snd_device);
 
 	if (ret)
-		platform_device_put(bf52x_ad73311_snd_device);
+		platform_device_put(bf5xx_ad73311_snd_device);
 
 	return ret;
 }
@@ -227,7 +227,7 @@ static int __init bf5xx_ad73311_init(void)
 static void __exit bf5xx_ad73311_exit(void)
 {
 	pr_debug("%s enter\n", __func__);
-	platform_device_unregister(bf52x_ad73311_snd_device);
+	platform_device_unregister(bf5xx_ad73311_snd_device);
 }
 
 module_init(bf5xx_ad73311_init);
sound/soc/blackfin/bf5xx-ssm2602.c +8 -8
index bc0cdde..3a00fa4 100644
@@ -148,24 +148,24 @@ static struct snd_soc_device bf5xx_ssm2602_snd_devdata = {
 	.codec_data = &bf5xx_ssm2602_setup,
 };
 
-static struct platform_device *bf52x_ssm2602_snd_device;
+static struct platform_device *bf5xx_ssm2602_snd_device;
 
 static int __init bf5xx_ssm2602_init(void)
 {
 	int ret;
 
 	pr_debug("%s enter\n", __func__);
-	bf52x_ssm2602_snd_device = platform_device_alloc("soc-audio", -1);
-	if (!bf52x_ssm2602_snd_device)
+	bf5xx_ssm2602_snd_device = platform_device_alloc("soc-audio", -1);
+	if (!bf5xx_ssm2602_snd_device)
 		return -ENOMEM;
 
-	platform_set_drvdata(bf52x_ssm2602_snd_device,
+	platform_set_drvdata(bf5xx_ssm2602_snd_device,
 				&bf5xx_ssm2602_snd_devdata);
-	bf5xx_ssm2602_snd_devdata.dev = &bf52x_ssm2602_snd_device->dev;
-	ret = platform_device_add(bf52x_ssm2602_snd_device);
+	bf5xx_ssm2602_snd_devdata.dev = &bf5xx_ssm2602_snd_device->dev;
+	ret = platform_device_add(bf5xx_ssm2602_snd_device);
 
 	if (ret)
-		platform_device_put(bf52x_ssm2602_snd_device);
+		platform_device_put(bf5xx_ssm2602_snd_device);
 
 	return ret;
 }
@@ -173,7 +173,7 @@ static int __init bf5xx_ssm2602_init(void)
 static void __exit bf5xx_ssm2602_exit(void)
 {
 	pr_debug("%s enter\n", __func__);
-	platform_device_unregister(bf52x_ssm2602_snd_device);
+	platform_device_unregister(bf5xx_ssm2602_snd_device);
 }
 
 module_init(bf5xx_ssm2602_init);
Signature · 1 line
1.6.3.1
#1 lore raw

PATCH 1/1 ASoC: Blackfin: update the bf5xx_i2s_resume parameters

From: Barry Song <[email protected]>

Latest ASoC only passes snd_soc_dai to the resume function.

---
 sound/soc/blackfin/bf5xx-i2s.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
sound/soc/blackfin/bf5xx-i2s.c +1 -2
index 0e8af48..af06904 100644
@@ -249,8 +249,7 @@ static int bf5xx_i2s_suspend(struct snd_soc_dai *dai)
 	return 0;
 }
 
-static int bf5xx_i2s_resume(struct platform_device *pdev,
-			    struct snd_soc_dai *dai)
+static int bf5xx_i2s_resume(struct snd_soc_dai *dai)
 {
 	int ret;
 	struct sport_device *sport =
Signature · 1 line
1.6.3.1
#2 lore raw

Re: [PATCH] ASoC: Blackfin: update the bf5xx_i2s_resume parameters

Quoted 3 lines · Mike Frysinger

From: Barry Song <[email protected]>

Latest ASoC only passes snd_soc_dai to the resume function.

Also applied for 2.6.31. Again, please CC maintainers.

#3 lore raw
In reply to Mike Frysinger
Quoted 3 lines · Mike Frysinger

From: Barry Song <[email protected]>

These drivers aren't BF52x specific, so don't use bf52x in the names.

Applied for 2.6.32.

Given that these machine drivers cover so many different systems you probably want to remove a lot of the Kconfig settings and make everything take platform data specifying how the system is set up. At the minute there's a relatively large amount of manual kernel configuration required to get things up and running on a given board which isn't ideal.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw
Quoted 3 lines · Mark Brown

Given that these machine drivers cover so many different systems you probably want to remove a lot of the Kconfig settings and make everything take platform data specifying how the system is set up.

that is the current plan
-mike