Lines Matching refs:trig
31 static int hid_sensor_data_rdy_trigger_set_state(struct iio_trigger *trig, in hid_sensor_data_rdy_trigger_set_state() argument
34 struct hid_sensor_common *st = iio_trigger_get_drvdata(trig); in hid_sensor_data_rdy_trigger_set_state()
54 iio_trigger_unregister(indio_dev->trig); in hid_sensor_remove_trigger()
55 iio_trigger_free(indio_dev->trig); in hid_sensor_remove_trigger()
56 indio_dev->trig = NULL; in hid_sensor_remove_trigger()
69 struct iio_trigger *trig; in hid_sensor_setup_trigger() local
71 trig = iio_trigger_alloc("%s-dev%d", name, indio_dev->id); in hid_sensor_setup_trigger()
72 if (trig == NULL) { in hid_sensor_setup_trigger()
78 trig->dev.parent = indio_dev->dev.parent; in hid_sensor_setup_trigger()
79 iio_trigger_set_drvdata(trig, attrb); in hid_sensor_setup_trigger()
80 trig->ops = &hid_sensor_trigger_ops; in hid_sensor_setup_trigger()
81 ret = iio_trigger_register(trig); in hid_sensor_setup_trigger()
87 indio_dev->trig = trig; in hid_sensor_setup_trigger()
92 iio_trigger_free(trig); in hid_sensor_setup_trigger()