public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drivers: misc: ad525x_dpot: Fix typo in spi write16 and write24 transfer counts
@ 2010-10-14  8:59 michael.hennerich
  2010-10-14  8:59 ` [PATCH 2/3] drivers: misc: ad525x_dpot: Fix part name typos in defines michael.hennerich
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: michael.hennerich @ 2010-10-14  8:59 UTC (permalink / raw)
  To: akpm
  Cc: linux-kernel, ddbua, drivers, mike.frysinger, chrisv,
	Michael Hennerich

From: Michael Hennerich <michael.hennerich@analog.com>


Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
---
 drivers/misc/ad525x_dpot-spi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/misc/ad525x_dpot-spi.c b/drivers/misc/ad525x_dpot-spi.c
index b8c6df9..6cfcb63 100644
--- a/drivers/misc/ad525x_dpot-spi.c
+++ b/drivers/misc/ad525x_dpot-spi.c
@@ -53,13 +53,13 @@ static int write8(void *client, u8 val)
 static int write16(void *client, u8 reg, u8 val)
 {
 	u8 data[2] = {reg, val};
-	return spi_write(client, data, 1);
+	return spi_write(client, data, 2);
 }
 
 static int write24(void *client, u8 reg, u16 val)
 {
 	u8 data[3] = {reg, val >> 8, val};
-	return spi_write(client, data, 1);
+	return spi_write(client, data, 3);
 }
 
 static int read8(void *client)
-- 
1.6.0.2


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

end of thread, other threads:[~2010-10-15  7:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-14  8:59 [PATCH 1/3] drivers: misc: ad525x_dpot: Fix typo in spi write16 and write24 transfer counts michael.hennerich
2010-10-14  8:59 ` [PATCH 2/3] drivers: misc: ad525x_dpot: Fix part name typos in defines michael.hennerich
2010-10-14 22:21   ` Andrew Morton
2010-10-15  7:53     ` Hennerich, Michael
2010-10-14  8:59 ` [PATCH 3/3] drivers: misc: ad525x_dpot: new features michael.hennerich
2010-10-14 22:20 ` [PATCH 1/3] drivers: misc: ad525x_dpot: Fix typo in spi write16 and write24 transfer counts Andrew Morton
2010-10-15  7:31   ` Hennerich, Michael

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox