forked from Minki/linux
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
@ -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 New Issue
Block a user