diff options
author | Kim, Milo <Milo.Kim@ti.com> | 2012-08-16 03:39:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-08-27 13:24:45 -0400 |
commit | d965a8bc0cf56e0b2448b9aed6afe9066bc2616d (patch) | |
tree | a3bf17f62eb613302ddd4ef68f2f4bb7c9b2dded /drivers/iio/inkern.c | |
parent | 8c29ecd3620cce207f383fd3ab9b345061a9a8dc (diff) |
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>
Diffstat (limited to 'drivers/iio/inkern.c')
-rw-r--r-- | drivers/iio/inkern.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/iio/inkern.c b/drivers/iio/inkern.c index b5afc2ff34fd..a14e55dd8ddc 100644 --- a/drivers/iio/inkern.c +++ b/drivers/iio/inkern.c | |||
@@ -239,8 +239,10 @@ int iio_read_channel_raw(struct iio_channel *chan, int *val) | |||
239 | goto err_unlock; | 239 | goto err_unlock; |
240 | } | 240 | } |
241 | 241 | ||
242 | ret = chan->indio_dev->info->read_raw(chan->indio_dev, chan->channel, | 242 | ret = chan->indio_dev->info->read_raw(chan->indio_dev, |
243 | val, &val2, 0); | 243 | chan->channel, |
244 | val, &val2, | ||
245 | IIO_CHAN_INFO_RAW); | ||
244 | err_unlock: | 246 | err_unlock: |
245 | mutex_unlock(&chan->indio_dev->info_exist_lock); | 247 | mutex_unlock(&chan->indio_dev->info_exist_lock); |
246 | 248 | ||