iio: use IIO_CHAN_INFO_RAW rather than 0
authorKim, Milo <Milo.Kim@ti.com>
Thu, 16 Aug 2012 07:39:00 +0000 (08:39 +0100)
committerJonathan Cameron <jic23@kernel.org>
Mon, 27 Aug 2012 17:24:45 +0000 (18:24 +0100)
(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>
drivers/iio/inkern.c

index b5afc2ff34fd5c5f58d0c83e3d1538a3d901acac..a14e55dd8ddcd790317a044f9f39a60772070a87 100644 (file)
@@ -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);