linux/drivers/iio/accel
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
..
adxl345_core.c iio:accel: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:22:40 +01:00
adxl345_i2c.c iio: accel: adxl345: Split driver into core and I2C 2017-03-04 16:45:08 +00:00
adxl345_spi.c iio: accel: adxl345: Add SPI support 2017-03-04 16:49:28 +00:00
adxl345.h iio: accel: adxl345: Split driver into core and I2C 2017-03-04 16:45:08 +00:00
bma180.c iio:accel: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:22:40 +01:00
bma220_spi.c iio:accel: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:22:40 +01:00
bmc150-accel-core.c iio: accel: bmc150: Remove redundant __func__ in dev_dbg() 2018-02-24 13:29:36 +00:00
bmc150-accel-i2c.c iio: accel: bmc150: Add OF device ID table 2017-12-02 11:59:33 +00:00
bmc150-accel-spi.c iio: accel: bmc150: use common definition for regmap conf 2016-04-03 11:24:52 +01:00
bmc150-accel.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cros_ec_accel_legacy.c platform/chrome: Add cros_ec_accel_legacy driver 2017-10-14 20:34:01 +01:00
da280.c iio:accel:da280: Linx 820 Windows tablet has a da280 mapped via ACPI 2017-12-02 10:41:33 +00:00
da311.c iio:accel: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:22:40 +01:00
dmard06.c iio:accel: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:22:40 +01:00
dmard09.c iio:accel: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:22:40 +01:00
dmard10.c iio:accel: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:22:40 +01:00
hid-sensor-accel-3d.c iio: Replace occurrences of magic number 0 by IIO_CHAN_INFO_RAW 2018-03-07 20:14:36 +00:00
Kconfig platform/chrome: Add cros_ec_accel_legacy driver 2017-10-14 20:34:01 +01:00
kxcjk-1013.c iio: accel: kxcjk1013: add support for KXTF9 2017-10-09 20:50:06 +01:00
kxsd9-i2c.c iio: adc/accel: Fix up module licenses 2017-12-02 10:39:43 +00:00
kxsd9-spi.c iio: accel: kxsd9: Deploy system and runtime PM 2016-09-18 11:35:59 +01:00
kxsd9.c iio:accel: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:22:40 +01:00
kxsd9.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile Staging/IIO patches for 4.15-rc1 2017-11-13 20:53:28 -08:00
mc3230.c iio:accel: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:22:40 +01:00
mma7455_core.c iio:accel: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:22:40 +01:00
mma7455_i2c.c iio: accel: mma7455_i2c: Add OF device ID table 2017-03-19 10:57:43 +00:00
mma7455_spi.c iio: accel: add Freescale MMA7455L/MMA7456L 3-axis accelerometer driver 2015-11-01 18:00:35 +00:00
mma7455.h iio: accel: add Freescale MMA7455L/MMA7456L 3-axis accelerometer driver 2015-11-01 18:00:35 +00:00
mma7660.c iio:accel: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:22:40 +01:00
mma8452.c iio: mma8452: replace license description with SPDX specifier 2018-01-08 16:03:41 +01:00
mma9551_core.c iio: accel: mma9553: fix alignment issues 2015-06-14 16:00:54 +01:00
mma9551_core.h iio: accel: mma9553: fix alignment issues 2015-06-14 16:00:54 +01:00
mma9551.c iio:accel: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:22:40 +01:00
mma9553.c iio:accel: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:22:40 +01:00
mxc4005.c iio:accel: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:22:40 +01:00
mxc6255.c iio:accel: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:22:40 +01:00
sca3000.c iio:accel: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:22:40 +01:00
ssp_accel_sensor.c iio: common: ssp_sensors: accel: use devm_iio_device_register() 2017-01-28 12:15:22 +00:00
st_accel_buffer.c iio: st_sensors: switch to a threaded interrupt 2016-05-29 20:21:41 +01:00
st_accel_core.c iio: accel: st_accel: remove redundant pointer pdata 2017-12-02 10:41:38 +00:00
st_accel_i2c.c iio: accel: use strlcpy() instead of strncpy() 2018-01-30 18:33:14 +00:00
st_accel_spi.c iio: accel: add support to LIS3DHH 2017-10-10 20:40:54 +01:00
st_accel.h iio: accel: add support to LIS3DHH 2017-10-10 20:40:54 +01:00
stk8ba50.c iio:accel: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:22:40 +01:00
stk8312.c iio:accel: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:22:40 +01:00