summaryrefslogtreecommitdiff
path: root/drivers/iio/counter/104-quad-8.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/counter/104-quad-8.c')
-rw-r--r--drivers/iio/counter/104-quad-8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/counter/104-quad-8.c b/drivers/iio/counter/104-quad-8.c
index a5913e97945e..f9b8fc9ae13f 100644
--- a/drivers/iio/counter/104-quad-8.c
+++ b/drivers/iio/counter/104-quad-8.c
@@ -76,7 +76,7 @@ static int quad8_read_raw(struct iio_dev *indio_dev,
return IIO_VAL_INT;
}
- flags = inb(base_offset);
+ flags = inb(base_offset + 1);
borrow = flags & BIT(0);
carry = !!(flags & BIT(1));