linux-hardened/drivers/staging/iio
Melissa Wen df4d737ee4 staging:iio:ad7150: fix threshold mode config bit
According to the AD7150 configuration register description, bit 7 assumes
value 1 when the threshold mode is fixed and 0 when it is adaptive,
however, the operation that identifies this mode was considering the
opposite values.

This patch renames the boolean variable to describe it correctly and
properly replaces it in the places where it is used.

Fixes: 531efd6aa0 ("staging:iio:adc:ad7150: chan_spec conv + i2c_smbus commands + drop unused poweroff timeout control.")
Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2019-05-27 10:52:30 +01:00
..
accel staging: iio: add proper SPDX identifiers to remaining driver files 2019-04-03 11:10:17 +02:00
adc Merge 5.1-rc6 into staging-next 2019-04-21 23:18:44 +02:00
addac staging: iio: add proper SPDX identifiers to remaining driver files 2019-04-03 11:10:17 +02:00
cdc staging:iio:ad7150: fix threshold mode config bit 2019-05-27 10:52:30 +01:00
Documentation staging: iio: ad5933: add ABI documentation 2019-04-04 20:20:13 +01:00
frequency staging: iio: ad9832: use clock framework for clock reference 2019-04-14 13:22:30 +01:00
impedance-analyzer First set of new device support, features and fixes for IIO in the 5.2 cycle 2019-04-04 22:25:29 +02:00
meter Merge 5.1-rc6 into staging-next 2019-04-21 23:18:44 +02:00
resolver staging: iio: add proper SPDX identifiers to remaining driver files 2019-04-03 11:10:17 +02:00
Kconfig staging: add missing SPDX lines to Kconfig files 2019-04-03 11:10:15 +02:00
Makefile staging: iio: Drop ADIS16060 driver from staging 2018-06-10 11:52:31 +01:00
TODO staging: iio: Augment TODO file with GPIO work item 2018-04-23 14:36:10 +02:00