linux/drivers/iio/imu
Lars-Peter Clausen 1e9663c62b iio:trigger: Introduce iio_tigger_{set,get}_drvdata
Introduce iio_tigger_{set,get}_drvdata which allows to attach driver specific
data to a trigger. The functions wrap access to the triggers private_data field
and all current users are updated to use iio_tigger_{set,get}_drvdata instead of
directly accessing the private_data field. This is the first step towards
removing the private_data field from the iio_trigger struct.

The following coccinelle script has been used to update the drivers:
<smpl>
@@
struct iio_trigger *trigger;
expression priv;
@@
-trigger->private_data = priv
+iio_trigger_set_drv_data(trigger, priv)

@@
struct iio_trigger *trigger;
@@
-trigger->private_data
+iio_trigger_get_drv_data(trigger)
</smpl>

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2013-03-25 21:06:09 +00:00
..
inv_mpu6050 iio:trigger: Introduce iio_tigger_{set,get}_drvdata 2013-03-25 21:06:09 +00:00
Kconfig Invensense MPU6050 Device Driver. 2013-02-10 17:42:43 +00:00
Makefile Invensense MPU6050 Device Driver. 2013-02-10 17:42:43 +00:00
adis.c iio:imu: Add support for the ADIS16480 and similar IMUs 2012-11-20 21:28:51 +00:00
adis16400.h iio:adis16400: Add support for the adis16448 2013-01-26 10:07:51 +00:00
adis16400_buffer.c staging:iio: Move adis16400 out of staging 2013-01-26 10:07:50 +00:00
adis16400_core.c iio:imu:adis16400 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:35 +00:00
adis16480.c iio:imu:adis16480 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:36 +00:00
adis_buffer.c iio:imu:adis: Add paging support 2012-11-20 21:26:37 +00:00
adis_trigger.c iio:trigger: Introduce iio_tigger_{set,get}_drvdata 2013-03-25 21:06:09 +00:00