OSDN Git Service

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

When calling adis16350_spi_read_all and adis16400_spi_read_burst 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/imu/adis16400_ring.c