1
0
Fork 0
alistair23-linux/drivers/iio/gyro
Rodrigo Siqueira 67464a54e5 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>
2018-03-07 20:14:36 +00:00
..
Kconfig iio: gyro: mpu3050: add I2C dependency 2016-11-08 20:29:33 +00:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
adis16080.c iio:gyro: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:28:56 +01:00
adis16130.c iio:gyro: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:28:56 +01:00
adis16136.c gyro:adis16136: fix debugfs_simple_attr.cocci warnings 2018-01-08 16:03:44 +01:00
adis16260.c iio:gyro: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:28:56 +01:00
adxrs450.c iio:gyro: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:28:56 +01:00
bmg160.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
bmg160_core.c drivers: iio: gyro: remove duplicate includes 2018-01-08 16:03:42 +01:00
bmg160_i2c.c iio: bmg160: Separate i2c and core driver 2015-08-31 17:04:23 +01:00
bmg160_spi.c iio: bmg160: Add SPI driver 2015-08-31 17:06:11 +01:00
hid-sensor-gyro-3d.c iio: Replace occurrences of magic number 0 by IIO_CHAN_INFO_RAW 2018-03-07 20:14:36 +00:00
itg3200_buffer.c iio:gyro: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:28:56 +01:00
itg3200_core.c iio:gyro: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:28:56 +01:00
mpu3050-core.c iio:gyro: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:28:56 +01:00
mpu3050-i2c.c iio: gyro: mpu3050: stop double error reporting 2017-04-03 20:40:51 +01:00
mpu3050.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ssp_gyro_sensor.c iio: common: ssp_sensors: gyro: use devm_iio_device_register() 2017-01-28 12:16:17 +00:00
st_gyro.h iio: gyro: st_gyro: fix L3GD20H support 2017-07-01 10:16:37 +01:00
st_gyro_buffer.c iio: st_sensors: switch to a threaded interrupt 2016-05-29 20:21:41 +01:00
st_gyro_core.c iio: gyro: st_gyro: add SPI-3wire support to st_gyro framework 2017-10-10 20:32:28 +01:00
st_gyro_i2c.c iio: common: st_sensors: move st_sensors_of_i2c_probe() in common code 2017-07-01 10:16:56 +01:00
st_gyro_spi.c iio: gyro: st_gyro_spi: add OF capability to st_gyro_spi 2017-07-02 10:24:56 +01:00