Jonathan Cameron wrote on 2011-08-18: > On 08/18/11 16:00, michael.hennerich@xxxxxxxxxx wrote: >> From: Michael Hennerich <michael.hennerich@xxxxxxxxxx> >> >> Bit 7 of the AD7150 configuration register needs to be set for fixed >> threshold modes. > Oops. Will merge with the relevant patch. By the way - without you having hardware to test - pretty impressive this major respin worked out of the box! Congratulations! -Michael >> Signed-off-by: Michael Hennerich <michael.hennerich@xxxxxxxxxx> >> --- >> drivers/staging/iio/adc/ad7150.c | 2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> diff --git a/drivers/staging/iio/adc/ad7150.c >> b/drivers/staging/iio/adc/ad7150.c >> index 9e01614..fdf4da8 100644 >> --- a/drivers/staging/iio/adc/ad7150.c >> +++ b/drivers/staging/iio/adc/ad7150.c >> @@ -349,7 +349,7 @@ static int ad7150_write_event_config(struct > iio_dev *indio_dev, >> goto error_ret; >> }; >> - cfg |= (adaptive << 7) | (thresh_type << 5); >> + cfg |= (!adaptive << 7) | (thresh_type << 5); >> >> ret = i2c_smbus_write_byte_data(chip->client, AD7150_CFG, cfg); >> if (ret < 0) > Greetings, Michael -- Analog Devices GmbH Wilhelm-Wagenfeld-Str. 6 80807 Muenchen Sitz der Gesellschaft: Muenchen; Registergericht: Muenchen HRB 40368; Geschaeftsfuehrer:Dr.Carsten Suckrow, Thomas Wessel, William A. Martin, Margaret Seif -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html