aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2011-03-21 11:44:35 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-05 15:37:09 -0400
commitfc5b85b0ad1f9da948e4d683710081a9bda357cb (patch)
tree9884a0a48169b59d600af9024941639c9405dc1e /drivers
parent84ba253b07a3d8e58160690320e9cfbe199bb88e (diff)
staging: IIO: IMU: ADIS16400: Fix up SPI messages cs_change behavior
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/iio/imu/adis16400_core.c2
-rw-r--r--drivers/staging/iio/imu/adis16400_ring.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/iio/imu/adis16400_core.c b/drivers/staging/iio/imu/adis16400_core.c
index cfb108a1545b..1007e3ded92f 100644
--- a/drivers/staging/iio/imu/adis16400_core.c
+++ b/drivers/staging/iio/imu/adis16400_core.c
@@ -93,7 +93,6 @@ static int adis16400_spi_write_reg_16(struct device *dev,
93 .tx_buf = st->tx + 2, 93 .tx_buf = st->tx + 2,
94 .bits_per_word = 8, 94 .bits_per_word = 8,
95 .len = 2, 95 .len = 2,
96 .cs_change = 1,
97 }, 96 },
98 }; 97 };
99 98
@@ -137,7 +136,6 @@ static int adis16400_spi_read_reg_16(struct device *dev,
137 .rx_buf = st->rx, 136 .rx_buf = st->rx,
138 .bits_per_word = 8, 137 .bits_per_word = 8,
139 .len = 2, 138 .len = 2,
140 .cs_change = 1,
141 }, 139 },
142 }; 140 };
143 141
diff --git a/drivers/staging/iio/imu/adis16400_ring.c b/drivers/staging/iio/imu/adis16400_ring.c
index 33293fba9bcc..ac381ca126fc 100644
--- a/drivers/staging/iio/imu/adis16400_ring.c
+++ b/drivers/staging/iio/imu/adis16400_ring.c
@@ -122,12 +122,10 @@ static int adis16400_spi_read_burst(struct device *dev, u8 *rx)
122 .tx_buf = st->tx, 122 .tx_buf = st->tx,
123 .bits_per_word = 8, 123 .bits_per_word = 8,
124 .len = 2, 124 .len = 2,
125 .cs_change = 0,
126 }, { 125 }, {
127 .rx_buf = rx, 126 .rx_buf = rx,
128 .bits_per_word = 8, 127 .bits_per_word = 8,
129 .len = 24, 128 .len = 24,
130 .cs_change = 1,
131 }, 129 },
132 }; 130 };
133 131