diff options
author | Jonathan Cameron <jic23@cam.ac.uk> | 2011-06-27 12:07:48 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-06-28 21:39:48 (GMT) |
commit | bfccd4fb9af3708eb7d117ca4fef60a650853fee (patch) | |
tree | d810e0a8564c1c61d6ebfd651a8603a083e80f71 /drivers/staging/iio/meter/ade7753.h | |
parent | ba61bb18c23d9076c47d0199c268d244d04ee7dc (diff) | |
download | linux-fsl-qoriq-bfccd4fb9af3708eb7d117ca4fef60a650853fee.tar.xz |
staging:iio:meter:ade7753 allocate chip state with iio_dev; allocate buffers within state
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/meter/ade7753.h')
-rw-r--r-- | drivers/staging/iio/meter/ade7753.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/staging/iio/meter/ade7753.h b/drivers/staging/iio/meter/ade7753.h index 3b9c7f6..3f059d3 100644 --- a/drivers/staging/iio/meter/ade7753.h +++ b/drivers/staging/iio/meter/ade7753.h @@ -60,17 +60,15 @@ /** * struct ade7753_state - device instance specific data * @us: actual spi_device - * @indio_dev: industrial I/O device structure * @tx: transmit buffer * @rx: receive buffer * @buf_lock: mutex to protect tx and rx **/ struct ade7753_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[ADE7753_MAX_TX] ____cacheline_aligned; + u8 rx[ADE7753_MAX_RX]; }; #endif |