mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
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>
This commit is contained in:
parent
f09906f43b
commit
74aa933894
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue