From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Samuel Ortiz <sameo@linux.intel.com>
Cc: linux-kernel@vger.kernel.org, patches@opensource.wolfsonmicro.com
Subject: Re: [PATCH 2/2] mfd: Add WM831x SPI support
Date: Tue, 19 Oct 2010 02:53:54 -0700 [thread overview]
Message-ID: <20101019095347.GC11371@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <20101019094422.GG2736@sortiz-mobl>
On Tue, Oct 19, 2010 at 11:44:23AM +0200, Samuel Ortiz wrote:
> > +static int wm831x_spi_write_device(struct wm831x *wm831x, unsigned short reg,
> > + int bytes, void *src)
> > +{
> > + struct spi_device *spi = wm831x->control_data;
> > + u16 *s = src;
> > + u16 data[2];
> > + int ret;
> > +
> > + /* Go register at a time */
> > + for (r = reg; r < reg + (bytes / 2); r++) {
> > + data[0] = r;
Oh, gah. We need an extra int r here, I've obviously stuffed up the
move from the BSP I was working on. Sorry about that:
>From b7fc0d8ff8c96fabf531d685bda7c3d5b8c51f35 Mon Sep 17 00:00:00 2001
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
Date: Tue, 19 Oct 2010 02:53:08 -0700
Subject: [PATCH] mfd: Fix missing variable in WM831x SPI
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
drivers/mfd/wm831x-spi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mfd/wm831x-spi.c b/drivers/mfd/wm831x-spi.c
index 073d4c6..2789b15 100644
--- a/drivers/mfd/wm831x-spi.c
+++ b/drivers/mfd/wm831x-spi.c
@@ -48,7 +48,7 @@ static int wm831x_spi_write_device(struct wm831x *wm831x, unsigned short reg,
struct spi_device *spi = wm831x->control_data;
u16 *s = src;
u16 data[2];
- int ret;
+ int ret, r;
/* Go register at a time */
for (r = reg; r < reg + (bytes / 2); r++) {
--
1.7.1
next prev parent reply other threads:[~2010-10-19 9:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-08 21:23 [PATCH 1/2] mfd: Factor out WM831x I2C I/O from the core driver Mark Brown
2010-10-08 21:23 ` [PATCH 2/2] mfd: Add WM831x SPI support Mark Brown
2010-10-19 9:44 ` Samuel Ortiz
2010-10-19 9:53 ` Mark Brown [this message]
2010-10-19 10:52 ` Samuel Ortiz
2010-10-19 9:43 ` [PATCH 1/2] mfd: Factor out WM831x I2C I/O from the core driver Samuel Ortiz
2010-10-19 11:15 ` Samuel Ortiz
2010-10-19 15:14 ` Mark Brown
2010-10-19 15:27 ` Samuel Ortiz
2010-10-19 17:51 ` Mark Brown
-- strict thread matches above, loose matches on Subject: below --
2010-10-08 20:58 Mark Brown
2010-10-08 20:58 ` [PATCH 2/2] mfd: Add WM831x SPI support Mark Brown
2010-10-08 16:52 [PATCH 1/2] mfd: Factor out WM831x I2C I/O from the core driver Mark Brown
2010-10-08 16:52 ` [PATCH 2/2] mfd: Add WM831x SPI support Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101019095347.GC11371@opensource.wolfsonmicro.com \
--to=broonie@opensource.wolfsonmicro.com \
--cc=linux-kernel@vger.kernel.org \
--cc=patches@opensource.wolfsonmicro.com \
--cc=sameo@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.