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

staging:iio:adis16203: 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
26d96e8e 24410492

+1
+1
drivers/staging/iio/accel/adis16203_core.c
··· 134 134 .diag_stat_reg = ADIS16203_DIAG_STAT, 135 135 136 136 .self_test_mask = ADIS16203_MSC_CTRL_SELF_TEST_EN, 137 + .self_test_no_autoclear = true, 137 138 .startup_delay = ADIS16203_STARTUP_DELAY, 138 139 139 140 .status_error_msgs = adis16203_status_error_msgs,