diff options
Diffstat (limited to 'drivers/iio/imu/adis16400_buffer.c')
-rw-r--r-- | drivers/iio/imu/adis16400_buffer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iio/imu/adis16400_buffer.c b/drivers/iio/imu/adis16400_buffer.c index f2cf829e5df1..6e727ffe5262 100644 --- a/drivers/iio/imu/adis16400_buffer.c +++ b/drivers/iio/imu/adis16400_buffer.c | |||
@@ -18,7 +18,7 @@ int adis16400_update_scan_mode(struct iio_dev *indio_dev, | |||
18 | { | 18 | { |
19 | struct adis16400_state *st = iio_priv(indio_dev); | 19 | struct adis16400_state *st = iio_priv(indio_dev); |
20 | struct adis *adis = &st->adis; | 20 | struct adis *adis = &st->adis; |
21 | uint16_t *tx, *rx; | 21 | uint16_t *tx; |
22 | 22 | ||
23 | if (st->variant->flags & ADIS16400_NO_BURST) | 23 | if (st->variant->flags & ADIS16400_NO_BURST) |
24 | return adis_update_scan_mode(indio_dev, scan_mask); | 24 | return adis_update_scan_mode(indio_dev, scan_mask); |
@@ -35,7 +35,6 @@ int adis16400_update_scan_mode(struct iio_dev *indio_dev, | |||
35 | if (!adis->buffer) | 35 | if (!adis->buffer) |
36 | return -ENOMEM; | 36 | return -ENOMEM; |
37 | 37 | ||
38 | rx = adis->buffer; | ||
39 | tx = adis->buffer + indio_dev->scan_bytes; | 38 | tx = adis->buffer + indio_dev->scan_bytes; |
40 | 39 | ||
41 | tx[0] = ADIS_READ_REG(ADIS16400_GLOB_CMD); | 40 | tx[0] = ADIS_READ_REG(ADIS16400_GLOB_CMD); |