* [PATCH] ASoC: Fix NULL vs. 0 warning in SSM2602
@ 2011-05-10 22:03 Mark Brown
2011-05-10 22:48 ` [Device-drivers-devel] " Mike Frysinger
2011-05-11 13:12 ` Liam Girdwood
0 siblings, 2 replies; 3+ messages in thread
From: Mark Brown @ 2011-05-10 22:03 UTC (permalink / raw)
To: Lars-Peter Clausen, Liam Girdwood
Cc: alsa-devel, patches, Mike Frysinger, device-drivers-devel,
Mark Brown
sparse complains if 0 is used as a NULL pointer constant.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
sound/soc/codecs/ssm2602.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sound/soc/codecs/ssm2602.c b/sound/soc/codecs/ssm2602.c
index 70099c9..84f4ad5 100644
--- a/sound/soc/codecs/ssm2602.c
+++ b/sound/soc/codecs/ssm2602.c
@@ -137,7 +137,7 @@ SND_SOC_DAPM_DAC("DAC", "HiFi Playback", SSM2602_PWR, 3, 1),
SND_SOC_DAPM_ADC("ADC", "HiFi Capture", SSM2602_PWR, 2, 1),
SND_SOC_DAPM_PGA("Line Input", SSM2602_PWR, 0, 1, NULL, 0),
-SND_SOC_DAPM_SUPPLY("Digital Core Power", SSM2602_ACTIVE, 0, 0, 0, 0),
+SND_SOC_DAPM_SUPPLY("Digital Core Power", SSM2602_ACTIVE, 0, 0, NULL, 0),
SND_SOC_DAPM_OUTPUT("LOUT"),
SND_SOC_DAPM_OUTPUT("ROUT"),
--
1.7.5.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [Device-drivers-devel] [PATCH] ASoC: Fix NULL vs. 0 warning in SSM2602
2011-05-10 22:03 [PATCH] ASoC: Fix NULL vs. 0 warning in SSM2602 Mark Brown
@ 2011-05-10 22:48 ` Mike Frysinger
2011-05-11 13:12 ` Liam Girdwood
1 sibling, 0 replies; 3+ messages in thread
From: Mike Frysinger @ 2011-05-10 22:48 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel, Lars-Peter Clausen, patches, device-drivers-devel,
Liam Girdwood
On Tue, May 10, 2011 at 18:03, Mark Brown wrote:
> sparse complains if 0 is used as a NULL pointer constant.
Acked-by: Mike Frysinger <vapier@gentoo.org>
-mike
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: Fix NULL vs. 0 warning in SSM2602
2011-05-10 22:03 [PATCH] ASoC: Fix NULL vs. 0 warning in SSM2602 Mark Brown
2011-05-10 22:48 ` [Device-drivers-devel] " Mike Frysinger
@ 2011-05-11 13:12 ` Liam Girdwood
1 sibling, 0 replies; 3+ messages in thread
From: Liam Girdwood @ 2011-05-11 13:12 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel, Lars-Peter Clausen, Mike Frysinger, patches,
device-drivers-devel
On Wed, 2011-05-11 at 00:03 +0200, Mark Brown wrote:
> sparse complains if 0 is used as a NULL pointer constant.
>
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> ---
> sound/soc/codecs/ssm2602.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/sound/soc/codecs/ssm2602.c b/sound/soc/codecs/ssm2602.c
> index 70099c9..84f4ad5 100644
> --- a/sound/soc/codecs/ssm2602.c
> +++ b/sound/soc/codecs/ssm2602.c
> @@ -137,7 +137,7 @@ SND_SOC_DAPM_DAC("DAC", "HiFi Playback", SSM2602_PWR, 3, 1),
> SND_SOC_DAPM_ADC("ADC", "HiFi Capture", SSM2602_PWR, 2, 1),
> SND_SOC_DAPM_PGA("Line Input", SSM2602_PWR, 0, 1, NULL, 0),
>
> -SND_SOC_DAPM_SUPPLY("Digital Core Power", SSM2602_ACTIVE, 0, 0, 0, 0),
> +SND_SOC_DAPM_SUPPLY("Digital Core Power", SSM2602_ACTIVE, 0, 0, NULL, 0),
>
> SND_SOC_DAPM_OUTPUT("LOUT"),
> SND_SOC_DAPM_OUTPUT("ROUT"),
Acked-by: Liam Girdwood <lrg@ti.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-05-11 13:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-10 22:03 [PATCH] ASoC: Fix NULL vs. 0 warning in SSM2602 Mark Brown
2011-05-10 22:48 ` [Device-drivers-devel] " Mike Frysinger
2011-05-11 13:12 ` Liam Girdwood
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).