From: Lars-Peter Clausen Date: Fri, 10 Aug 2012 16:36:00 +0000 (+0100) Subject: staging:iio:ad7192: Fix setting ACX X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=74aa933894e1c32376a8372ec8264b8c6f7faf24;p=openwrt%2Fstaging%2Fblogic.git staging:iio:ad7192: Fix setting ACX Write to the correct register when setting the ACX bit. Signed-off-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- diff --git a/drivers/staging/iio/adc/ad7192.c b/drivers/staging/iio/adc/ad7192.c index b9a74425ff75..0a1bc6a31d02 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;