Skip to contentSkip to conversation

fix private data pointer calculation in CS4270 driver

ALSA Applied Timur Tabi 2 participants 2 messages Nov 13, 2007 – Nov 14, 2007

Subsystems (3)
lore
Share & tools
lore

Timur Tabi

author
#0 lore raw

Fix the calculation of the private_data pointer in the CS4270 driver.

---
 sound/soc/codecs/cs4270.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
sound/soc/codecs/cs4270.c +2 -1
index 5d601ad..abac628 100644
@@ -725,7 +725,8 @@ static int cs4270_probe(struct platform_device *pdev)
 	codec->owner = THIS_MODULE;
 	codec->dai = &cs4270_dai;
 	codec->num_dai = 1;
-	codec->private_data = codec + ALIGN(sizeof(struct snd_soc_codec), 4);
+	codec->private_data = (void *) codec +
+		ALIGN(sizeof(struct snd_soc_codec), 4);
 
 	socdev->codec = codec;
 
Signature · 1 line
1.5.2.4
Applied
#1 lore raw

At Tue, 13 Nov 2007 17:23:36 -0600,

Quoted 4 lines · Timur Tabi

Fix the calculation of the private_data pointer in the CS4270 driver.

Thanks, applied to ALSA tree now.

Takashi

Quoted 26 lines
---
 sound/soc/codecs/cs4270.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
sound/soc/codecs/cs4270.c +2 -1
index 5d601ad..abac628 100644
@@ -725,7 +725,8 @@ static int cs4270_probe(struct platform_device *pdev)
 	codec->owner = THIS_MODULE;
 	codec->dai = &cs4270_dai;
 	codec->num_dai = 1;
-	codec->private_data = codec + ALIGN(sizeof(struct snd_soc_codec), 4);
+	codec->private_data = (void *) codec +
+		ALIGN(sizeof(struct snd_soc_codec), 4);
 
 	socdev->codec = codec;
 
Signature · 6 lines
1.5.2.4

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel