Instead or removing assignment, use iio_trigger_get to get reference. Also the iio_trigger_get returns struct iio_trigger pointer. Srinivas Pandruvada (8): iio:trigger: modify return value for iio_trigger_get iio: accel: bma180: Fix indio_dev->trig assignment iio: adc: ad_sigma_delta: Fix indio_dev->trig assignment iio: hid_sensor_hub: Fix indio_dev->trig assignment iio: st_sensors: Fix indio_dev->trig assignment iio: gyro: itg3200: Fix indio_dev->trig assignment iio: inv_mpu6050: Fix indio_dev->trig assignment iio: meter: ade7758: Fix indio_dev->trig assignment drivers/iio/accel/bma180.c | 2 +- drivers/iio/adc/ad_sigma_delta.c | 2 +- drivers/iio/common/hid-sensors/hid-sensor-trigger.c | 3 ++- drivers/iio/common/st_sensors/st_sensors_trigger.c | 2 +- drivers/iio/gyro/itg3200_buffer.c | 2 +- drivers/iio/imu/inv_mpu6050/inv_mpu_trigger.c | 2 +- drivers/staging/iio/meter/ade7758_trigger.c | 2 +- include/linux/iio/trigger.h | 4 +++- 8 files changed, 11 insertions(+), 8 deletions(-) -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html