* [PATCH] Fix some minor errors in mpc5200 psc i2s driver
@ 2008-10-29 21:22 Jon Smirl
2008-10-29 21:47 ` Grant Likely
0 siblings, 1 reply; 4+ messages in thread
From: Jon Smirl @ 2008-10-29 21:22 UTC (permalink / raw)
To: alsa-devel, grant.likely
Fix missing unsigned for irqsave flags in psc i2s driver
Make attribute visiblity static
Collect all sysfs errors before checking status
Signed-off-by: Jon Smirl <jonsmirl@gmail.com>
---
sound/soc/fsl/mpc5200_psc_i2s.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/sound/soc/fsl/mpc5200_psc_i2s.c b/sound/soc/fsl/mpc5200_psc_i2s.c
index 8692329..809c5c4 100644
--- a/sound/soc/fsl/mpc5200_psc_i2s.c
+++ b/sound/soc/fsl/mpc5200_psc_i2s.c
@@ -277,7 +277,7 @@ static int psc_i2s_trigger(struct snd_pcm_substream *substream, int cmd)
struct mpc52xx_psc __iomem *regs = psc_i2s->psc_regs;
u16 imr;
u8 psc_cmd;
- long flags;
+ unsigned long flags;
if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE)
s = &psc_i2s->capture;
@@ -699,9 +699,9 @@ static ssize_t psc_i2s_stat_store(struct device *dev,
return count;
}
-DEVICE_ATTR(status, 0644, psc_i2s_status_show, NULL);
-DEVICE_ATTR(playback_underrun, 0644, psc_i2s_stat_show, psc_i2s_stat_store);
-DEVICE_ATTR(capture_overrun, 0644, psc_i2s_stat_show, psc_i2s_stat_store);
+static DEVICE_ATTR(status, 0644, psc_i2s_status_show, NULL);
+static DEVICE_ATTR(playback_underrun, 0644, psc_i2s_stat_show, psc_i2s_stat_store);
+static DEVICE_ATTR(capture_overrun, 0644, psc_i2s_stat_show, psc_i2s_stat_store);
/* ---------------------------------------------------------------------
* OF platform bus binding code:
@@ -819,8 +819,8 @@ static int __devinit psc_i2s_of_probe(struct of_device *op,
/* Register the SYSFS files */
rc = device_create_file(psc_i2s->dev, &dev_attr_status);
- rc = device_create_file(psc_i2s->dev, &dev_attr_capture_overrun);
- rc = device_create_file(psc_i2s->dev, &dev_attr_playback_underrun);
+ rc |= device_create_file(psc_i2s->dev, &dev_attr_capture_overrun);
+ rc |= device_create_file(psc_i2s->dev, &dev_attr_playback_underrun);
if (rc)
dev_info(psc_i2s->dev, "error creating sysfs files\n");
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix some minor errors in mpc5200 psc i2s driver
2008-10-29 21:22 [PATCH] Fix some minor errors in mpc5200 psc i2s driver Jon Smirl
@ 2008-10-29 21:47 ` Grant Likely
2008-10-30 9:09 ` Mark Brown
0 siblings, 1 reply; 4+ messages in thread
From: Grant Likely @ 2008-10-29 21:47 UTC (permalink / raw)
To: Jon Smirl; +Cc: alsa-devel
On Wed, Oct 29, 2008 at 3:22 PM, Jon Smirl <jonsmirl@gmail.com> wrote:
> Fix missing unsigned for irqsave flags in psc i2s driver
> Make attribute visiblity static
> Collect all sysfs errors before checking status
>
> Signed-off-by: Jon Smirl <jonsmirl@gmail.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
> ---
> sound/soc/fsl/mpc5200_psc_i2s.c | 12 ++++++------
> 1 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/sound/soc/fsl/mpc5200_psc_i2s.c b/sound/soc/fsl/mpc5200_psc_i2s.c
> index 8692329..809c5c4 100644
> --- a/sound/soc/fsl/mpc5200_psc_i2s.c
> +++ b/sound/soc/fsl/mpc5200_psc_i2s.c
> @@ -277,7 +277,7 @@ static int psc_i2s_trigger(struct snd_pcm_substream *substream, int cmd)
> struct mpc52xx_psc __iomem *regs = psc_i2s->psc_regs;
> u16 imr;
> u8 psc_cmd;
> - long flags;
> + unsigned long flags;
>
> if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE)
> s = &psc_i2s->capture;
> @@ -699,9 +699,9 @@ static ssize_t psc_i2s_stat_store(struct device *dev,
> return count;
> }
>
> -DEVICE_ATTR(status, 0644, psc_i2s_status_show, NULL);
> -DEVICE_ATTR(playback_underrun, 0644, psc_i2s_stat_show, psc_i2s_stat_store);
> -DEVICE_ATTR(capture_overrun, 0644, psc_i2s_stat_show, psc_i2s_stat_store);
> +static DEVICE_ATTR(status, 0644, psc_i2s_status_show, NULL);
> +static DEVICE_ATTR(playback_underrun, 0644, psc_i2s_stat_show, psc_i2s_stat_store);
> +static DEVICE_ATTR(capture_overrun, 0644, psc_i2s_stat_show, psc_i2s_stat_store);
>
> /* ---------------------------------------------------------------------
> * OF platform bus binding code:
> @@ -819,8 +819,8 @@ static int __devinit psc_i2s_of_probe(struct of_device *op,
>
> /* Register the SYSFS files */
> rc = device_create_file(psc_i2s->dev, &dev_attr_status);
> - rc = device_create_file(psc_i2s->dev, &dev_attr_capture_overrun);
> - rc = device_create_file(psc_i2s->dev, &dev_attr_playback_underrun);
> + rc |= device_create_file(psc_i2s->dev, &dev_attr_capture_overrun);
> + rc |= device_create_file(psc_i2s->dev, &dev_attr_playback_underrun);
> if (rc)
> dev_info(psc_i2s->dev, "error creating sysfs files\n");
>
>
>
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix some minor errors in mpc5200 psc i2s driver
2008-10-29 21:47 ` Grant Likely
@ 2008-10-30 9:09 ` Mark Brown
2008-10-30 11:14 ` Takashi Iwai
0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2008-10-30 9:09 UTC (permalink / raw)
To: Grant Likely; +Cc: alsa-devel
On Wed, Oct 29, 2008 at 03:47:51PM -0600, Grant Likely wrote:
> On Wed, Oct 29, 2008 at 3:22 PM, Jon Smirl <jonsmirl@gmail.com> wrote:
> > Fix missing unsigned for irqsave flags in psc i2s driver
> > Make attribute visiblity static
> > Collect all sysfs errors before checking status
> >
> > Signed-off-by: Jon Smirl <jonsmirl@gmail.com>
> Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Takashi, I've got a batch of stuff I intend to push out to you today,
I'll add this to it.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix some minor errors in mpc5200 psc i2s driver
2008-10-30 9:09 ` Mark Brown
@ 2008-10-30 11:14 ` Takashi Iwai
0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2008-10-30 11:14 UTC (permalink / raw)
To: Mark Brown; +Cc: Grant Likely, alsa-devel
At Thu, 30 Oct 2008 09:09:26 +0000,
Mark Brown wrote:
>
> On Wed, Oct 29, 2008 at 03:47:51PM -0600, Grant Likely wrote:
> > On Wed, Oct 29, 2008 at 3:22 PM, Jon Smirl <jonsmirl@gmail.com> wrote:
> > > Fix missing unsigned for irqsave flags in psc i2s driver
> > > Make attribute visiblity static
> > > Collect all sysfs errors before checking status
> > >
> > > Signed-off-by: Jon Smirl <jonsmirl@gmail.com>
> > Acked-by: Grant Likely <grant.likely@secretlab.ca>
>
> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
>
> Takashi, I've got a batch of stuff I intend to push out to you today,
> I'll add this to it.
OK, thanks. I'll wait for your patch bomb.
Takashi
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-10-30 11:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-29 21:22 [PATCH] Fix some minor errors in mpc5200 psc i2s driver Jon Smirl
2008-10-29 21:47 ` Grant Likely
2008-10-30 9:09 ` Mark Brown
2008-10-30 11:14 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox