diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2012-08-10 16:36:00 (GMT) |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-08-16 19:24:35 (GMT) |
commit | 74aa933894e1c32376a8372ec8264b8c6f7faf24 (patch) | |
tree | e52a119c3042bc0f425c2f3fc30d9607b03b911c /drivers/staging/iio | |
parent | f09906f43b8a0d52e3321db7d6f9d031097b0bc9 (diff) | |
download | linux-fsl-qoriq-74aa933894e1c32376a8372ec8264b8c6f7faf24.tar.xz |
staging:iio:ad7192: Fix setting ACX
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>
Diffstat (limited to 'drivers/staging/iio')
-rw-r--r-- | drivers/staging/iio/adc/ad7192.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/adc/ad7192.c b/drivers/staging/iio/adc/ad7192.c index b9a7442..0a1bc6a 100644 --- 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; |