aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/light/adjd_s311.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iio/light/adjd_s311.c b/drivers/iio/light/adjd_s311.c
index 00ab980f8e3c..23cff798598a 100644
--- a/drivers/iio/light/adjd_s311.c
+++ b/drivers/iio/light/adjd_s311.c
@@ -224,7 +224,8 @@ static int adjd_s311_read_raw(struct iio_dev *indio_dev,
224 224
225 switch (mask) { 225 switch (mask) {
226 case IIO_CHAN_INFO_RAW: 226 case IIO_CHAN_INFO_RAW:
227 ret = adjd_s311_read_data(indio_dev, chan->address, val); 227 ret = adjd_s311_read_data(indio_dev,
228 ADJD_S311_DATA_REG(chan->address), val);
228 if (ret < 0) 229 if (ret < 0)
229 return ret; 230 return ret;
230 return IIO_VAL_INT; 231 return IIO_VAL_INT;