staging: IIO: IMU: ADIS16400: Fix up SPI messages cs_change behavior
authorMichael Hennerich <michael.hennerich@analog.com>
Mon, 21 Mar 2011 15:44:35 +0000 (16:44 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 5 Apr 2011 19:37:09 +0000 (12:37 -0700)
cs_change must not be set in the last transfer of a spi message

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
CC: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/imu/adis16400_core.c
drivers/staging/iio/imu/adis16400_ring.c

index cfb108a1545b38dbd8b699db08a33ba7f5fb3955..1007e3ded92fe08b17e1fed6857ee30fafc87814 100644 (file)
@@ -93,7 +93,6 @@ static int adis16400_spi_write_reg_16(struct device *dev,
                        .tx_buf = st->tx + 2,
                        .bits_per_word = 8,
                        .len = 2,
-                       .cs_change = 1,
                },
        };
 
@@ -137,7 +136,6 @@ static int adis16400_spi_read_reg_16(struct device *dev,
                        .rx_buf = st->rx,
                        .bits_per_word = 8,
                        .len = 2,
-                       .cs_change = 1,
                },
        };
 
index 33293fba9bccd062632742826275a8e1f59700ef..ac381ca126fcf7cc980d8746f4d801ad9e6e3868 100644 (file)
@@ -122,12 +122,10 @@ static int adis16400_spi_read_burst(struct device *dev, u8 *rx)
                        .tx_buf = st->tx,
                        .bits_per_word = 8,
                        .len = 2,
-                       .cs_change = 0,
                }, {
                        .rx_buf = rx,
                        .bits_per_word = 8,
                        .len = 24,
-                       .cs_change = 1,
                },
        };