iio: Use dev_to_iio_dev()
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 12 May 2012 13:39:33 +0000 (15:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2012 20:37:45 +0000 (13:37 -0700)
commite53f5ac52ec19c8c606aeacdd13fed2a03d7365a
tree8463a43fb6121066350373dc9cc045afdf4c39d0
parent7a7913f11ddf932e20d2bde72bec57f2f7a9b49e
iio: Use dev_to_iio_dev()

Replace open-coded instances of getting a iio_dev struct from a device struct
with dev_to_iio_dev().

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/iio/industrialio-buffer.c
drivers/iio/industrialio-core.c
drivers/iio/industrialio-event.c
drivers/iio/industrialio-trigger.c