projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6915e04
)
drivers/misc/ad525x_dpot.c: fix typo in spi write16 and write24 transfer counts
author
Michael Hennerich
<
[email protected]
>
Tue, 26 Oct 2010 21:21:16 +0000
(14:21 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 26 Oct 2010 23:52:04 +0000
(16:52 -0700)
This is a bug fix. Some SPI connected devices using 16/24 bit accesses,
previously failed, now work.
This typo slipped in after testing, during some restructuring.
Signed-off-by: Michael Hennerich <
[email protected]
>
Cc: Mike Frysinger <
[email protected]
>
Cc: Chris Verges <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/misc/ad525x_dpot-spi.c
patch
|
blob
|
history
diff --git
a/drivers/misc/ad525x_dpot-spi.c
b/drivers/misc/ad525x_dpot-spi.c
index b8c6df9c8437213603cd997c7138f41fe76b94c6..6cfcb636577a04c64e4da856c8e320e8d91cbfc0 100644
(file)
--- 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)