diff options
| -rw-r--r-- | drivers/iio/counter/104-quad-8.c | 2 |
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, | |||
| 76 | return IIO_VAL_INT; | 76 | return IIO_VAL_INT; |
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | flags = inb(base_offset); | 79 | flags = inb(base_offset + 1); |
| 80 | borrow = flags & BIT(0); | 80 | borrow = flags & BIT(0); |
| 81 | carry = !!(flags & BIT(1)); | 81 | carry = !!(flags & BIT(1)); |
| 82 | 82 | ||
