You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
committed by
Jonathan Cameron
parent
8c29ecd362
commit
d965a8bc0c
@@ -239,8 +239,10 @@ int iio_read_channel_raw(struct iio_channel *chan, int *val)
|
||||
goto err_unlock;
|
||||
}
|
||||
|
||||
ret = chan->indio_dev->info->read_raw(chan->indio_dev, chan->channel,
|
||||
val, &val2, 0);
|
||||
ret = chan->indio_dev->info->read_raw(chan->indio_dev,
|
||||
chan->channel,
|
||||
val, &val2,
|
||||
IIO_CHAN_INFO_RAW);
|
||||
err_unlock:
|
||||
mutex_unlock(&chan->indio_dev->info_exist_lock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user