diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/misc/ad525x_dpot-spi.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/misc/ad525x_dpot-spi.c')
-rw-r--r-- | drivers/misc/ad525x_dpot-spi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/misc/ad525x_dpot-spi.c b/drivers/misc/ad525x_dpot-spi.c index b8c6df9c8437..7f9a55afe05d 100644 --- a/drivers/misc/ad525x_dpot-spi.c +++ b/drivers/misc/ad525x_dpot-spi.c | |||
@@ -38,6 +38,8 @@ static const struct ad_dpot_id ad_dpot_spi_devlist[] = { | |||
38 | {.name = "ad8402", .devid = AD8402_ID}, | 38 | {.name = "ad8402", .devid = AD8402_ID}, |
39 | {.name = "ad8403", .devid = AD8403_ID}, | 39 | {.name = "ad8403", .devid = AD8403_ID}, |
40 | {.name = "adn2850", .devid = ADN2850_ID}, | 40 | {.name = "adn2850", .devid = ADN2850_ID}, |
41 | {.name = "ad5270", .devid = AD5270_ID}, | ||
42 | {.name = "ad5271", .devid = AD5271_ID}, | ||
41 | {} | 43 | {} |
42 | }; | 44 | }; |
43 | 45 | ||
@@ -53,13 +55,13 @@ static int write8(void *client, u8 val) | |||
53 | static int write16(void *client, u8 reg, u8 val) | 55 | static int write16(void *client, u8 reg, u8 val) |
54 | { | 56 | { |
55 | u8 data[2] = {reg, val}; | 57 | u8 data[2] = {reg, val}; |
56 | return spi_write(client, data, 1); | 58 | return spi_write(client, data, 2); |
57 | } | 59 | } |
58 | 60 | ||
59 | static int write24(void *client, u8 reg, u16 val) | 61 | static int write24(void *client, u8 reg, u16 val) |
60 | { | 62 | { |
61 | u8 data[3] = {reg, val >> 8, val}; | 63 | u8 data[3] = {reg, val >> 8, val}; |
62 | return spi_write(client, data, 1); | 64 | return spi_write(client, data, 3); |
63 | } | 65 | } |
64 | 66 | ||
65 | static int read8(void *client) | 67 | static int read8(void *client) |