iio: adis16400: adis16300 has product ID and serial number
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 5 Aug 2015 13:38:16 +0000 (15:38 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 8 Aug 2015 11:53:26 +0000 (12:53 +0100)
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>
drivers/iio/imu/adis16400_core.c

index d42e4fe2c7ed3b61b79b9a6b83d7d06d576e90d1..7d612ab79a87054b68ab81e5c1111687b5e4c23c 100644 (file)
@@ -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 */