diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2010-05-24 17:33:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-25 11:07:04 -0400 |
commit | 0c53b9fbcca8870e4f4b248f4ed5fdadd43a01b6 (patch) | |
tree | 8577164ee5038cff73eb9711fa24f4b3c0771c32 /drivers/misc | |
parent | 0993dbedf2cc2f5fd0701fa3b27afdd303536b87 (diff) |
ad525x_dpot: extend write argument to 16bits
The possible output data is 16bits, not 8bits, so don't truncate it.
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/ad525x_dpot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/ad525x_dpot.c b/drivers/misc/ad525x_dpot.c index e6b274b5dbd6..ce92088bf0b8 100644 --- a/drivers/misc/ad525x_dpot.c +++ b/drivers/misc/ad525x_dpot.c | |||
@@ -75,7 +75,7 @@ enum dpot_devid { | |||
75 | #define AD525X_INC_ALL (AD525X_I2C_CMD | (0xB << 3)) | 75 | #define AD525X_INC_ALL (AD525X_I2C_CMD | (0xB << 3)) |
76 | 76 | ||
77 | static s32 ad525x_read(struct i2c_client *client, u8 reg); | 77 | static s32 ad525x_read(struct i2c_client *client, u8 reg); |
78 | static s32 ad525x_write(struct i2c_client *client, u8 reg, u8 value); | 78 | static s32 ad525x_write(struct i2c_client *client, u8 reg, u16 value); |
79 | 79 | ||
80 | /* | 80 | /* |
81 | * Client data (each client gets its own) | 81 | * Client data (each client gets its own) |
@@ -296,7 +296,7 @@ static s32 ad525x_read(struct i2c_client *client, u8 reg) | |||
296 | * A negative return value indicates an error occurred while reading | 296 | * A negative return value indicates an error occurred while reading |
297 | * the register. | 297 | * the register. |
298 | */ | 298 | */ |
299 | static s32 ad525x_write(struct i2c_client *client, u8 reg, u8 value) | 299 | static s32 ad525x_write(struct i2c_client *client, u8 reg, u16 value) |
300 | { | 300 | { |
301 | struct dpot_data *data = i2c_get_clientdata(client); | 301 | struct dpot_data *data = i2c_get_clientdata(client); |
302 | 302 | ||