projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f09906f
)
staging:iio:ad7192: Fix setting ACX
author
Lars-Peter Clausen
<lars@metafoo.de>
Fri, 10 Aug 2012 16:36:00 +0000
(17:36 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Thu, 16 Aug 2012 19:24:35 +0000
(20:24 +0100)
Write to the correct register when setting the ACX bit.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7192.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/iio/adc/ad7192.c
b/drivers/staging/iio/adc/ad7192.c
index b9a74425ff75987800344fdf4a3ca335acb50969..0a1bc6a31d026b49b3cea54c731eb1c319175733 100644
(file)
--- a/
drivers/staging/iio/adc/ad7192.c
+++ b/
drivers/staging/iio/adc/ad7192.c
@@
-754,7
+754,7
@@
static ssize_t ad7192_set(struct device *dev,
else
st->mode &= ~AD7192_MODE_ACX;
- ad7192_write_reg(st, AD7192_REG_
GPOCON
, 3, st->mode);
+ ad7192_write_reg(st, AD7192_REG_
MODE
, 3, st->mode);
break;
default:
ret = -EINVAL;