Lines Matching refs:trig
34 struct iio_trigger *trig; in iio_interrupt_trigger_probe() local
48 trig = iio_trigger_alloc(NULL, "irqtrig%d", irq); in iio_interrupt_trigger_probe()
49 if (!trig) { in iio_interrupt_trigger_probe()
59 iio_trigger_set_drvdata(trig, trig_info); in iio_interrupt_trigger_probe()
61 trig->ops = &iio_interrupt_trigger_ops; in iio_interrupt_trigger_probe()
63 irqflags, trig->name, trig); in iio_interrupt_trigger_probe()
70 ret = iio_trigger_register(trig); in iio_interrupt_trigger_probe()
73 platform_set_drvdata(pdev, trig); in iio_interrupt_trigger_probe()
79 free_irq(irq, trig); in iio_interrupt_trigger_probe()
83 iio_trigger_free(trig); in iio_interrupt_trigger_probe()
90 struct iio_trigger *trig; in iio_interrupt_trigger_remove() local
93 trig = platform_get_drvdata(pdev); in iio_interrupt_trigger_remove()
94 trig_info = iio_trigger_get_drvdata(trig); in iio_interrupt_trigger_remove()
95 iio_trigger_unregister(trig); in iio_interrupt_trigger_remove()
96 free_irq(trig_info->irq, trig); in iio_interrupt_trigger_remove()
98 iio_trigger_free(trig); in iio_interrupt_trigger_remove()