summaryrefslogtreecommitdiffstats
path: root/drivers/iio/industrialio-buffer.c
diff options
context:
space:
mode:
authorLars-Peter Clausen2012-05-12 15:39:32 +0200
committerGreg Kroah-Hartman2012-05-14 22:34:31 +0200
commit7a7913f11ddf932e20d2bde72bec57f2f7a9b49e (patch)
tree8494f244143cae26b4b470aeee59209323ccb0d0 /drivers/iio/industrialio-buffer.c
parentstaging: "rts5139" Fix typos. (diff)
downloadkernel-qcow2-linux-7a7913f11ddf932e20d2bde72bec57f2f7a9b49e.tar.gz
kernel-qcow2-linux-7a7913f11ddf932e20d2bde72bec57f2f7a9b49e.tar.xz
kernel-qcow2-linux-7a7913f11ddf932e20d2bde72bec57f2f7a9b49e.zip
iio: Add dev_to_iio_dev() helper function
This patch adds a helper function for retriving a iio_dev struct from a device struct. Currently we open-code this in two different ways. One is using dev_get_drvdata on the device and the other is using container_of. The new helper function uses the container_of solution as it creates slightly smaller code and also will eventually free up the drvdata pointer for usage by invidual drivers. 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/iio/industrialio-buffer.c')
0 files changed, 0 insertions, 0 deletions