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

When calling ade7758_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/meter/ade7758_ring.c