]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
staging:iio:adis16209_read_ring_data: Pass IIO device directly
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 12 May 2012 13:39:36 +0000 (15:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2012 20:39:19 +0000 (13:39 -0700)
commit0fbf0a15f9efd9b7dd5e49619718b6b51f3ce093
treec6e90bfa56a412afda6a0a3bdc64e89cf75995bf
parentce7ea56c270451820cfcc0c96aa6a73516b061ee
staging:iio:adis16209_read_ring_data: Pass IIO device directly

When calling adis16209_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/adis16209_ring.c