From: Lars-Peter Clausen Date: Fri, 15 Apr 2016 14:59:41 +0000 (+0200) Subject: staging:iio:adis16209: Set self_test_no_autoclear flag X-Git-Tag: v4.8-rc1~193^2~2^2~124 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d116edd71f688d0acc442ad8e66903e26d15d0b;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Jonathan Cameron --- diff --git a/drivers/staging/iio/accel/adis16209_core.c b/drivers/staging/iio/accel/adis16209_core.c index 8b42bf8..8dbad58 100644 --- a/drivers/staging/iio/accel/adis16209_core.c +++ b/drivers/staging/iio/accel/adis16209_core.c @@ -168,6 +168,7 @@ static const struct adis_data adis16209_data = { .diag_stat_reg = ADIS16209_DIAG_STAT, .self_test_mask = ADIS16209_MSC_CTRL_SELF_TEST_EN, + .self_test_no_autoclear = true, .startup_delay = ADIS16209_STARTUP_DELAY, .status_error_msgs = adis16209_status_error_msgs,