OpenCloudOS-Kernel/drivers/iio/accel
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
..
Kconfig iio:accel: Add STMicroelectronics accelerometers driver 2013-01-31 17:56:43 +00:00
Makefile iio:accel: Add STMicroelectronics accelerometers driver 2013-01-31 17:56:43 +00:00
hid-sensor-accel-3d.c iio:hid_sensors move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:18 +00:00
kxsd9.c iio:accel:kxsd9 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:21 +00:00
st_accel.h iio:accel: Add STMicroelectronics accelerometers driver 2013-01-31 17:56:43 +00:00
st_accel_buffer.c iio:trigger: Introduce iio_tigger_{set,get}_drvdata 2013-03-25 21:06:09 +00:00
st_accel_core.c iio:st_sensors fix build when !CONFIG_IIO_TRIGGER 2013-02-09 15:22:29 +00:00
st_accel_i2c.c iio:st_sensors fix build when !CONFIG_IIO_TRIGGER 2013-02-09 15:22:29 +00:00
st_accel_spi.c iio:st_sensors fix build when !CONFIG_IIO_TRIGGER 2013-02-09 15:22:29 +00:00