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

When calling adis16203_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/accel/adis16203_ring.c