diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2016-04-15 17:59:40 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-04-16 15:43:43 +0300 |
commit | 26d96e8ea9912d9fc7c48339ed6cf5642390ffff (patch) | |
tree | fea354d92de07276a551ea802f8a5e7ed7aa0940 /drivers/staging/iio | |
parent | 24410492868ba816bfd4366b5406d4881b8aee94 (diff) | |
download | linux-26d96e8ea9912d9fc7c48339ed6cf5642390ffff.tar.xz |
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>
Diffstat (limited to 'drivers/staging/iio')
-rw-r--r-- | drivers/staging/iio/accel/adis16203_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/iio/accel/adis16203_core.c b/drivers/staging/iio/accel/adis16203_core.c index de5b84ac842b..c70671778bae 100644 --- a/drivers/staging/iio/accel/adis16203_core.c +++ b/drivers/staging/iio/accel/adis16203_core.c @@ -134,6 +134,7 @@ static const struct adis_data adis16203_data = { .diag_stat_reg = ADIS16203_DIAG_STAT, .self_test_mask = ADIS16203_MSC_CTRL_SELF_TEST_EN, + .self_test_no_autoclear = true, .startup_delay = ADIS16203_STARTUP_DELAY, .status_error_msgs = adis16203_status_error_msgs, |