linux/drivers/staging/iio
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
..
accel iio:trigger: Introduce iio_tigger_{set,get}_drvdata 2013-03-25 21:06:09 +00:00
adc iio:trigger: Introduce iio_tigger_{set,get}_drvdata 2013-03-25 21:06:09 +00:00
addac staging: iio: remove use of __devexit_p 2012-11-21 15:02:23 -08:00
cdc staging:iio:cdc:ad7746 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:39 +00:00
Documentation iio: Documentation change for inkern interface. 2012-09-15 10:02:16 +01:00
frequency staging:iio: Use spi_sync_transfer() 2013-02-09 11:10:43 +00:00
gyro staging:iio:gyro:adis16130 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:40 +00:00
impedance-analyzer staging:iio:impedance:ad5933 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:40 +00:00
light staging:iio:light:tsl2x7x move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:41 +00:00
magnetometer staging:iio:magnetometer:hmc5843 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:41 +00:00
meter iio:trigger: Introduce iio_tigger_{set,get}_drvdata 2013-03-25 21:06:09 +00:00
resolver staging:iio:resolver:ad2s90 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:42 +00:00
trigger iio:trigger: Introduce iio_tigger_{set,get}_drvdata 2013-03-25 21:06:09 +00:00
iio_dummy_evgen.c staging:iio: Don't compare boolean values with true/false 2012-10-19 16:19:45 +01:00
iio_dummy_evgen.h staging:iio:dummy Add event support + fake event generator 2011-10-17 15:36:30 -07:00
iio_simple_dummy_buffer.c iio: Fix some comments 2012-12-27 11:21:28 +00:00
iio_simple_dummy_events.c staging: iio: Fix typo in iio 2012-05-08 16:04:12 -07:00
iio_simple_dummy.c staging:iio:dummy move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:15 +00:00
iio_simple_dummy.h staging:iio:dummy: Fix potential NULL pointer dereference 2012-09-22 10:55:08 +01:00
Kconfig hwmon: Move the IIO client driver for hwmon out of staging 2013-03-23 10:08:15 +00:00
Makefile hwmon: Move the IIO client driver for hwmon out of staging 2013-03-23 10:08:15 +00:00
ring_hw.h staging:iio: Update email address for Jonathan Cameron. 2012-09-03 20:26:46 +01:00
TODO staging:iio: Update email address for Jonathan Cameron. 2012-09-03 20:26:46 +01:00