staging:iio:imu:adis16400 avoid allocating rx, tx, and state separately from iio_dev.
authorJonathan Cameron <jic23@cam.ac.uk>
Wed, 18 May 2011 13:42:23 +0000 (14:42 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 19 May 2011 23:15:03 +0000 (16:15 -0700)
commit38d15f06f942306050a063abd111467d39c5cc37
tree845d3de4cdc07833e51ed906c23b42980376232e
parent59c85e82c2e7a672cb4342dc5ccf9df8a3a14f73
staging:iio:imu:adis16400 avoid allocating rx, tx, and state separately from iio_dev.

Uses the iio_allocate_device parameter to set aside space for adis16400_state and
____cacheline_aligned buffers for tx and rx to avoid separatel allocating them.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/imu/adis16400.h
drivers/staging/iio/imu/adis16400_core.c
drivers/staging/iio/imu/adis16400_ring.c
drivers/staging/iio/imu/adis16400_trigger.c