1
0
Fork 0
alistair23-linux/drivers/staging/iio/cdc
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
..
Kconfig staging: add missing SPDX lines to Kconfig files 2019-04-03 11:10:15 +02:00
Makefile staging: add missing SPDX lines to Makefile files 2019-04-03 11:10:15 +02:00
ad7150.c staging:iio:ad7150: fix threshold mode config bit 2019-05-27 10:52:30 +01:00
ad7746.c staging: iio: add proper SPDX identifiers to remaining driver files 2019-04-03 11:10:17 +02:00
ad7746.h staging: iio: add proper SPDX identifiers to remaining driver files 2019-04-03 11:10:17 +02:00