staging:iio:adis16260_read_ring_data: Pass IIO device directly
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 12 May 2012 13:39:39 +0000 (15:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2012 20:39:20 +0000 (13:39 -0700)
commit48f29345cee22a4dfaf384ab3bbb8ba14f92b6a9
tree5155db22921f7bd6678c0a98d0f5950e769d3f68
parent8dc5afd8cb9b9a1253fdaa4e25d3ac1dccca6319
staging:iio:adis16260_read_ring_data: Pass IIO device directly

When calling adis16260_read_ring_data we pass the device struct of embedded in
the IIO device only to look up the IIO device from the device struct again right
away. This patch changes the code to pass the IIO device directly.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/gyro/adis16260_ring.c