OSDN Git Service

iio: Replace occurrences of magic number 0 by IIO_CHAN_INFO_RAW
authorRodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Tue, 6 Mar 2018 12:02:57 +0000 (09:02 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 7 Mar 2018 20:14:36 +0000 (20:14 +0000)
commit67464a54e5156ed2e5a72ffb516308b58f25e6ca
tree10beddd82f154a8af3335d30848badbf103091aa
parentf22fb87d4c3bf52daadd1184531dcbabf1a8ab60
iio: Replace occurrences of magic number 0 by IIO_CHAN_INFO_RAW

Usually, functions responsible for reading raw data typically relies on
values from iio_chan_info_enum to correctly identify the type of data to
be read. There is a set of a device driver that uses the magic number 0
instead of IIO_CHAN_INFO_RAW. This patch improves the readability by
replaces the magic number 0 for the appropriate IIO_CHAN_INFO_RAW in six
devices driver in the IIO subsystem.

Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/hid-sensor-accel-3d.c
drivers/iio/dac/ad5380.c
drivers/iio/dac/ad5764.c
drivers/iio/gyro/hid-sensor-gyro-3d.c
drivers/iio/light/hid-sensor-als.c
drivers/iio/light/lm3533-als.c