summaryrefslogtreecommitdiffstats
path: root/drivers/iio/imu/adis16400.c
diff options
context:
space:
mode:
authorNuno Sá <nuno.sa@analog.com>2020-02-10 15:26:02 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-03-08 17:28:30 +0000
commitfdcf6bbb4ed388844e74810e117ac87db1347f3a (patch)
treed325639461e72f88afbf4d853c6320b3be00757c /drivers/iio/imu/adis16400.c
parent3f17ada8f38c57b6c81d41db6d911932b280d5b5 (diff)
downloadlinux-fdcf6bbb4ed388844e74810e117ac87db1347f3a.tar.bz2
iio: imu: adis: Add self_test_reg variable
This patch adds a dedicated self_test_reg variable. This is also a step to let new drivers make use of `adis_initial_startup()`. Some devices use MSG_CTRL reg to request a self_test command while others use the GLOB_CMD register. Signed-off-by: Nuno Sá <nuno.sa@analog.com> Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/imu/adis16400.c')
-rw-r--r--drivers/iio/imu/adis16400.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/imu/adis16400.c b/drivers/iio/imu/adis16400.c
index 1c0770e03ec9..05e70c1c4835 100644
--- a/drivers/iio/imu/adis16400.c
+++ b/drivers/iio/imu/adis16400.c
@@ -956,6 +956,7 @@ static const char * const adis16400_status_error_msgs[] = {
.read_delay = 50, \
.write_delay = 50, \
.self_test_mask = ADIS16400_MSC_CTRL_MEM_TEST, \
+ .self_test_reg = ADIS16400_MSC_CTRL, \
.status_error_msgs = adis16400_status_error_msgs, \
.status_error_mask = BIT(ADIS16400_DIAG_STAT_ZACCL_FAIL) | \
BIT(ADIS16400_DIAG_STAT_YACCL_FAIL) | \