staging:iio:adis16400: Fix ADIS16300 temperature address
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 15 Jun 2012 16:11:50 +0000 (18:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Jun 2012 21:36:25 +0000 (14:36 -0700)
The ADIS16300 uses the same address for the temperature register as the
ADIS16350 and not the same as the ADIS16400.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/imu/adis16400_core.c

index 1f6bd854e95017a2bcd2e14533be1a3ecb66c74f..1c9931ed40572a533d85638969ecfd2efecb5e4b 100644 (file)
@@ -946,7 +946,7 @@ static struct iio_chan_spec adis16300_channels[] = {
                .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT |
                IIO_CHAN_INFO_OFFSET_SEPARATE_BIT |
                IIO_CHAN_INFO_SCALE_SEPARATE_BIT,
-               .address = temp,
+               .address = temp0,
                .scan_index = ADIS16400_SCAN_TEMP,
                .scan_type = IIO_ST('s', 12, 16, 0),
        }, {