diff options
author | Jonathan Cameron <jic23@cam.ac.uk> | 2011-06-27 12:07:15 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-06-28 21:39:35 (GMT) |
commit | 01a6721600d18403d0c14d0e25b1481228af245c (patch) | |
tree | 2166c6e6df2b923402749742737270e8562c348b /drivers/staging/iio/accel/adis16220.h | |
parent | a22ff7066c0561c2aa92967f0eed4a1c77f088e7 (diff) | |
download | linux-01a6721600d18403d0c14d0e25b1481228af245c.tar.xz |
staging:iio:accel:adis16220 allocate tx and rx in state plus state via iio_priv
Few other misc cleanups.
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/accel/adis16220.h')
-rw-r--r-- | drivers/staging/iio/accel/adis16220.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/staging/iio/accel/adis16220.h b/drivers/staging/iio/accel/adis16220.h index 4d5758c..024313c 100644 --- a/drivers/staging/iio/accel/adis16220.h +++ b/drivers/staging/iio/accel/adis16220.h @@ -126,21 +126,15 @@ /** * struct adis16220_state - device instance specific data * @us: actual spi_device - * @work_trigger_to_ring: bh for triggered event handling - * @inter: used to check if new interrupt has been triggered - * @last_timestamp: passing timestamp from th to bh of interrupt handler - * @indio_dev: industrial I/O device structure - * @trig: data ready trigger registered with iio * @tx: transmit buffer * @rx: receive buffer * @buf_lock: mutex to protect tx and rx **/ struct adis16220_state { - struct spi_device *us; - struct iio_dev *indio_dev; - u8 *tx; - u8 *rx; - struct mutex buf_lock; + struct spi_device *us; + struct mutex buf_lock; + u8 tx[ADIS16220_MAX_TX] ____cacheline_aligned; + u8 rx[ADIS16220_MAX_RX]; }; #endif /* SPI_ADIS16220_H_ */ |