linux-sg2042/include/linux/iio
Lars-Peter Clausen 7a7913f11d 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>
2012-05-14 13:34:31 -07:00
..
buffer.h
consumer.h
driver.h
events.h
iio.h iio: Add dev_to_iio_dev() helper function 2012-05-14 13:34:31 -07:00
kfifo_buf.h
machine.h
sysfs.h
trigger.h
trigger_consumer.h
types.h iio: core: introduce dB scle: IIO_VAL_INT_PLUS_MICRO_DB 2012-05-14 13:15:38 -07:00