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

staging:iio:adis16209: 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
5d116edd 26d96e8e

+1
+1
drivers/staging/iio/accel/adis16209_core.c
··· 168 168 .diag_stat_reg = ADIS16209_DIAG_STAT, 169 169 170 170 .self_test_mask = ADIS16209_MSC_CTRL_SELF_TEST_EN, 171 + .self_test_no_autoclear = true, 171 172 .startup_delay = ADIS16209_STARTUP_DELAY, 172 173 173 174 .status_error_msgs = adis16209_status_error_msgs,