Jonathan writes: Third round of IIO fixes for the 3.11 series. Only one fix in this pull request. A straight forward incorrect read address in the adjd_s311 driver.
Unified · Split
| @@ -232,7 +232,8 @@ static int adjd_s311_read_raw(struct iio_dev *indio_dev, · 231 unmodified lines | ||
| 232 | 232 | |
| 233 | 233 | switch (mask) { |
| 234 | 234 | case IIO_CHAN_INFO_RAW: |
| 235 | − ret = adjd_s311_read_data(indio_dev, chan->address, val); | |
| 235 | + ret = adjd_s311_read_data(indio_dev, | |
| 236 | + ADJD_S311_DATA_REG(chan->address), val); | |
| 236 | 237 | if (ret < 0) |
| 237 | 238 | return ret; |
| 238 | 239 | return IIO_VAL_INT; |