On 08/18/13 13:59, Peter Meerwald wrote: > forgot to convert channel index to data register > > Signed-off-by: Peter Meerwald <pmeerw@xxxxxxxxxx> Applied to the fixes-togreg branch of iio.git Thanks, Jonathan > --- > drivers/iio/light/adjd_s311.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/iio/light/adjd_s311.c b/drivers/iio/light/adjd_s311.c > index 55b9e18..c4b730d 100644 > --- a/drivers/iio/light/adjd_s311.c > +++ b/drivers/iio/light/adjd_s311.c > @@ -232,7 +232,8 @@ static int adjd_s311_read_raw(struct iio_dev *indio_dev, > > switch (mask) { > case IIO_CHAN_INFO_RAW: > - ret = adjd_s311_read_data(indio_dev, chan->address, val); > + ret = adjd_s311_read_data(indio_dev, > + ADJD_S311_DATA_REG(chan->address), val); > if (ret < 0) > return ret; > return IIO_VAL_INT; > -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html