Lines Matching refs:trig
63 iio_trigger_notify_done(indio_dev->trig); in itg3200_trigger_handler()
81 static int itg3200_data_rdy_trigger_set_state(struct iio_trigger *trig, in itg3200_data_rdy_trigger_set_state() argument
84 struct iio_dev *indio_dev = iio_trigger_get_drvdata(trig); in itg3200_data_rdy_trigger_set_state()
116 st->trig = iio_trigger_alloc("%s-dev%d", indio_dev->name, in itg3200_probe_trigger()
118 if (!st->trig) in itg3200_probe_trigger()
125 st->trig); in itg3200_probe_trigger()
130 st->trig->dev.parent = &st->i2c->dev; in itg3200_probe_trigger()
131 st->trig->ops = &itg3200_trigger_ops; in itg3200_probe_trigger()
132 iio_trigger_set_drvdata(st->trig, indio_dev); in itg3200_probe_trigger()
133 ret = iio_trigger_register(st->trig); in itg3200_probe_trigger()
138 indio_dev->trig = st->trig; in itg3200_probe_trigger()
143 free_irq(st->i2c->irq, st->trig); in itg3200_probe_trigger()
145 iio_trigger_free(st->trig); in itg3200_probe_trigger()
153 iio_trigger_unregister(st->trig); in itg3200_remove_trigger()
154 free_irq(st->i2c->irq, st->trig); in itg3200_remove_trigger()
155 iio_trigger_free(st->trig); in itg3200_remove_trigger()