Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging:iio:adis16201: Set self_test_no_autoclear flag

The ADIS16201 does not automatically clear the self test flag bit the self
test has been, so clear it manually. Otherwise we'll see a offset caused by
the self-test bias on the output values during normal operation.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

authored by

Lars-Peter Clausen and committed by
Jonathan Cameron
24410492 af8a4127

+1
+1
drivers/staging/iio/accel/adis16201_core.c
··· 167 167 .diag_stat_reg = ADIS16201_DIAG_STAT, 168 168 169 169 .self_test_mask = ADIS16201_MSC_CTRL_SELF_TEST_EN, 170 + .self_test_no_autoclear = true, 170 171 .startup_delay = ADIS16201_STARTUP_DELAY, 171 172 172 173 .status_error_msgs = adis16201_status_error_msgs,