Lines Matching refs:trig
263 iio_trigger_notify_done(indio_dev->trig); in ens160_trigger_handler()
268 static int ens160_set_trigger_state(struct iio_trigger *trig, bool state) in ens160_set_trigger_state() argument
270 struct iio_dev *indio_dev = iio_trigger_get_drvdata(trig); in ens160_set_trigger_state()
292 struct iio_trigger *trig; in ens160_setup_trigger() local
295 trig = devm_iio_trigger_alloc(dev, "%s-dev%d", indio_dev->name, in ens160_setup_trigger()
297 if (!trig) in ens160_setup_trigger()
301 trig->ops = &ens160_trigger_ops; in ens160_setup_trigger()
302 iio_trigger_set_drvdata(trig, indio_dev); in ens160_setup_trigger()
304 ret = devm_iio_trigger_register(dev, trig); in ens160_setup_trigger()
308 indio_dev->trig = iio_trigger_get(trig); in ens160_setup_trigger()
315 indio_dev->trig); in ens160_setup_trigger()