alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [ALSA] fix private data pointer calculation in CS4270 driver
@ 2007-11-13 23:23 Timur Tabi
  2007-11-14  7:23 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Timur Tabi @ 2007-11-13 23:23 UTC (permalink / raw)
  To: alsa-devel; +Cc: Timur Tabi

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

Signed-off-by: Timur Tabi <timur@freescale.com>
---
 sound/soc/codecs/cs4270.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/sound/soc/codecs/cs4270.c b/sound/soc/codecs/cs4270.c
index 5d601ad..abac628 100644
--- a/sound/soc/codecs/cs4270.c
+++ b/sound/soc/codecs/cs4270.c
@@ -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;
 
-- 
1.5.2.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [ALSA] fix private data pointer calculation in CS4270 driver
  2007-11-13 23:23 [ALSA] fix private data pointer calculation in CS4270 driver Timur Tabi
@ 2007-11-14  7:23 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2007-11-14  7:23 UTC (permalink / raw)
  To: Timur Tabi; +Cc: alsa-devel

At Tue, 13 Nov 2007 17:23:36 -0600,
Timur Tabi wrote:
> 
> Fix the calculation of the private_data pointer in the CS4270 driver.
> 
> Signed-off-by: Timur Tabi <timur@freescale.com>

Thanks, applied to ALSA tree now.


Takashi

> ---
>  sound/soc/codecs/cs4270.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/sound/soc/codecs/cs4270.c b/sound/soc/codecs/cs4270.c
> index 5d601ad..abac628 100644
> --- a/sound/soc/codecs/cs4270.c
> +++ b/sound/soc/codecs/cs4270.c
> @@ -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;
>  
> -- 
> 1.5.2.4
> 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-11-14 11:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-13 23:23 [ALSA] fix private data pointer calculation in CS4270 driver Timur Tabi
2007-11-14  7:23 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).