]> git.karo-electronics.de Git - linux-beck.git/commit
staging:iio:adis16240_read_ring_data: Pass IIO device directly
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 12 May 2012 13:39:37 +0000 (15:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2012 20:39:19 +0000 (13:39 -0700)
commit4a5b7610807a01156bc626be1718d8e423a75101
treed5bc542ea3ef8df89ac390bd59cbe92edf5e4e34
parent0fbf0a15f9efd9b7dd5e49619718b6b51f3ce093
staging:iio:adis16240_read_ring_data: Pass IIO device directly

When calling adis16240_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/adis16240_ring.c