diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2012-08-10 18:36:00 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-08-27 18:52:26 +0200 |
commit | 2d66f389ccf2c3ffea93c0270ef34186e4995333 (patch) | |
tree | 6942c3c11162169838ea0021b5cad8e4961715e0 /drivers/iio | |
parent | staging:iio:ad7192: Remove unused platform_data from device state struct (diff) | |
download | linux-2d66f389ccf2c3ffea93c0270ef34186e4995333.tar.xz linux-2d66f389ccf2c3ffea93c0270ef34186e4995333.zip |
iio: Introduce iio_device_{set,get}_drvdata()
Introduce two new helper functions to attach a arbitrary pointer to a IIO
device. This is useful to get access to external non-global data from within a
IIO device callbacks where only the IIO device is available.
Internally these functions use dev_{set,get}_drvdata() on the struct device
embedded in the IIO device.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
0 files changed, 0 insertions, 0 deletions