Lines Matching refs:trig
19 static int adis_data_rdy_trigger_set_state(struct iio_trigger *trig, in adis_data_rdy_trigger_set_state() argument
22 struct adis *adis = iio_trigger_get_drvdata(trig); in adis_data_rdy_trigger_set_state()
45 adis->trig = iio_trigger_alloc("%s-dev%d", indio_dev->name, in adis_probe_trigger()
47 if (adis->trig == NULL) in adis_probe_trigger()
54 adis->trig); in adis_probe_trigger()
58 adis->trig->dev.parent = &adis->spi->dev; in adis_probe_trigger()
59 adis->trig->ops = &adis_trigger_ops; in adis_probe_trigger()
60 iio_trigger_set_drvdata(adis->trig, adis); in adis_probe_trigger()
61 ret = iio_trigger_register(adis->trig); in adis_probe_trigger()
63 indio_dev->trig = adis->trig; in adis_probe_trigger()
70 free_irq(adis->spi->irq, adis->trig); in adis_probe_trigger()
72 iio_trigger_free(adis->trig); in adis_probe_trigger()
85 iio_trigger_unregister(adis->trig); in adis_remove_trigger()
86 free_irq(adis->spi->irq, adis->trig); in adis_remove_trigger()
87 iio_trigger_free(adis->trig); in adis_remove_trigger()