Commit d965a8bc authored by Kim, Milo's avatar Kim, Milo Committed by Jonathan Cameron

iio: use IIO_CHAN_INFO_RAW rather than 0

(a) For better readability, replace 0 with IIO_CHAN_INFO_RAW.
(b) Make same line-format as other apis()
    : iio_read_channel_scale() and iio_read_channel_offset()
Signed-off-by: default avatarMilo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 8c29ecd3
...@@ -239,8 +239,10 @@ int iio_read_channel_raw(struct iio_channel *chan, int *val) ...@@ -239,8 +239,10 @@ int iio_read_channel_raw(struct iio_channel *chan, int *val)
goto err_unlock; goto err_unlock;
} }
ret = chan->indio_dev->info->read_raw(chan->indio_dev, chan->channel, ret = chan->indio_dev->info->read_raw(chan->indio_dev,
val, &val2, 0); chan->channel,
val, &val2,
IIO_CHAN_INFO_RAW);
err_unlock: err_unlock:
mutex_unlock(&chan->indio_dev->info_exist_lock); mutex_unlock(&chan->indio_dev->info_exist_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment