summaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/iio_simple_dummy_buffer.c
diff options
context:
space:
mode:
authorLars-Peter Clausen2012-06-21 19:11:00 +0200
committerGreg Kroah-Hartman2012-06-23 06:08:11 +0200
commit971ff1db41b0f16f34cfdeb9e0460d7dc598e68e (patch)
tree34b0506cdead14e3002b70ef0029b9facb3729ef /drivers/staging/iio/iio_simple_dummy_buffer.c
parentstaging:iio:trigger: Use to_iio_trigger() instead of dev_get_drvdata() (diff)
downloadkernel-qcow2-linux-971ff1db41b0f16f34cfdeb9e0460d7dc598e68e.tar.gz
kernel-qcow2-linux-971ff1db41b0f16f34cfdeb9e0460d7dc598e68e.tar.xz
kernel-qcow2-linux-971ff1db41b0f16f34cfdeb9e0460d7dc598e68e.zip
iio:trigger: Use to_iio_trigger() instead of dev_get_drvdata()
Use to_iio_trigger(dev) instead of dev_get_drvdata(dev). Both will return the trigger which belongs to the device, but the the first on is a bit more lightweight. Since this is the last location where we used dev_get_drvdata() for retrieving the trigger there is no need anymore to assign the the trigger to the devices drvdata, so we can remove that as well. 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>
Diffstat (limited to 'drivers/staging/iio/iio_simple_dummy_buffer.c')
0 files changed, 0 insertions, 0 deletions