diff options
author | Jonathan Cameron <jic23@cam.ac.uk> | 2011-06-27 13:07:55 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-06-28 14:39:51 -0700 |
commit | afc2ff0afaf395042854172994825439d9961e2c (patch) | |
tree | fd2bd74a1132d6eb4c5d90157147234bf25c351a /drivers/staging/iio/meter/ade7759.h | |
parent | 338473c8194b45eb28bae737fc7aa8e7f4fe7330 (diff) | |
download | op-kernel-dev-afc2ff0afaf395042854172994825439d9961e2c.zip op-kernel-dev-afc2ff0afaf395042854172994825439d9961e2c.tar.gz |
staging:iio:meter:ade7759: allocate state with iio_dev
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/ade7759.h')
-rw-r--r-- | drivers/staging/iio/meter/ade7759.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/staging/iio/meter/ade7759.h b/drivers/staging/iio/meter/ade7759.h index cc76c2c..c81d23d 100644 --- a/drivers/staging/iio/meter/ade7759.h +++ b/drivers/staging/iio/meter/ade7759.h @@ -41,17 +41,15 @@ /** * struct ade7759_state - device instance specific data * @us: actual spi_device - * @indio_dev: industrial I/O device structure + * @buf_lock: mutex to protect tx and rx * @tx: transmit buffer * @rx: receive buffer - * @buf_lock: mutex to protect tx and rx **/ struct ade7759_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[ADE7759_MAX_TX] ____cacheline_aligned; + u8 rx[ADE7759_MAX_RX]; }; #endif |