Lines Matching refs:trig
103 static int inv_mpu_data_rdy_trigger_set_state(struct iio_trigger *trig, in inv_mpu_data_rdy_trigger_set_state() argument
106 return inv_mpu6050_set_enable(iio_trigger_get_drvdata(trig), state); in inv_mpu_data_rdy_trigger_set_state()
119 st->trig = iio_trigger_alloc("%s-dev%d", in inv_mpu6050_probe_trigger()
122 if (st->trig == NULL) { in inv_mpu6050_probe_trigger()
129 st->trig); in inv_mpu6050_probe_trigger()
132 st->trig->dev.parent = &st->client->dev; in inv_mpu6050_probe_trigger()
133 st->trig->ops = &inv_mpu_trigger_ops; in inv_mpu6050_probe_trigger()
134 iio_trigger_set_drvdata(st->trig, indio_dev); in inv_mpu6050_probe_trigger()
135 ret = iio_trigger_register(st->trig); in inv_mpu6050_probe_trigger()
138 indio_dev->trig = st->trig; in inv_mpu6050_probe_trigger()
143 free_irq(st->client->irq, st->trig); in inv_mpu6050_probe_trigger()
145 iio_trigger_free(st->trig); in inv_mpu6050_probe_trigger()
152 iio_trigger_unregister(st->trig); in inv_mpu6050_remove_trigger()
153 free_irq(st->client->irq, st->trig); in inv_mpu6050_remove_trigger()
154 iio_trigger_free(st->trig); in inv_mpu6050_remove_trigger()