summaryrefslogtreecommitdiffstats
path: root/drivers/iio/imu
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2015-08-05 15:38:16 +0200
committerJonathan Cameron <jic23@kernel.org>2015-08-08 12:53:26 +0100
commitbd95a89e7a80cb0ee57e9ccd62de0dd80f98a270 (patch)
tree1d2d7f95a475796bc4a90e8194876fe93301312c /drivers/iio/imu
parent7abad1063deb0f77d275c61f58863ec319c58c5c (diff)
downloadlinux-stable-bd95a89e7a80cb0ee57e9ccd62de0dd80f98a270.tar.gz
linux-stable-bd95a89e7a80cb0ee57e9ccd62de0dd80f98a270.tar.bz2
linux-stable-bd95a89e7a80cb0ee57e9ccd62de0dd80f98a270.zip
iio: adis16400: adis16300 has product ID and serial number
The ADIS16300 has the product ID and serial number registers, they are just not documented. Set the appropriate flags so the driver makes use of them. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/imu')
-rw-r--r--drivers/iio/imu/adis16400_core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iio/imu/adis16400_core.c b/drivers/iio/imu/adis16400_core.c
index d42e4fe2c7ed..7d612ab79a87 100644
--- a/drivers/iio/imu/adis16400_core.c
+++ b/drivers/iio/imu/adis16400_core.c
@@ -696,7 +696,8 @@ static struct adis16400_chip_info adis16400_chips[] = {
[ADIS16300] = {
.channels = adis16300_channels,
.num_channels = ARRAY_SIZE(adis16300_channels),
- .flags = ADIS16400_HAS_SLOW_MODE,
+ .flags = ADIS16400_HAS_PROD_ID | ADIS16400_HAS_SLOW_MODE |
+ ADIS16400_HAS_SERIAL_NUMBER,
.gyro_scale_micro = IIO_DEGREE_TO_RAD(50000), /* 0.05 deg/s */
.accel_scale_micro = 5884,
.temp_scale_nano = 140000000, /* 0.14 C */