Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217429
b: refs/heads/master
c: 1f9fa52
h: refs/heads/master
i:
  217427: 1f4d27d
v: v3
  • Loading branch information
Michael Hennerich authored and Linus Torvalds committed Oct 26, 2010
1 parent cd57a7e commit b982522
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6915e04f8847bea16d0890f559694ad8eedd026c
refs/heads/master: 1f9fa5216eacf4fdf9d3e4ab57feb8b642f0e78b
4 changes: 2 additions & 2 deletions trunk/drivers/misc/ad525x_dpot-spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b982522

Please sign in to comment.