Lines Matching +refs:dev +refs:id +refs:attrs
19 int id; member
26 static int iio_sysfs_trigger_probe(int id);
27 static ssize_t iio_sysfs_trig_add(struct device *dev, in iio_sysfs_trig_add() argument
45 static int iio_sysfs_trigger_remove(int id);
46 static ssize_t iio_sysfs_trig_remove(struct device *dev, in iio_sysfs_trig_remove() argument
72 .attrs = iio_sysfs_trig_attrs,
82 static void iio_trigger_sysfs_release(struct device *dev) in iio_trigger_sysfs_release() argument
100 static ssize_t iio_sysfs_trigger_poll(struct device *dev, in iio_sysfs_trigger_poll() argument
103 struct iio_trigger *trig = to_iio_trigger(dev); in iio_sysfs_trigger_poll()
119 .attrs = iio_sysfs_trigger_attrs,
127 static int iio_sysfs_trigger_probe(int id) in iio_sysfs_trigger_probe() argument
135 if (id == t->id) { in iio_sysfs_trigger_probe()
148 t->id = id; in iio_sysfs_trigger_probe()
149 t->trig = iio_trigger_alloc(&iio_sysfs_trig_dev, "sysfstrig%d", id); in iio_sysfs_trigger_probe()
155 t->trig->dev.groups = iio_sysfs_trigger_attr_groups; in iio_sysfs_trigger_probe()
177 static int iio_sysfs_trigger_remove(int id) in iio_sysfs_trigger_remove() argument
183 if (id == iter->id) { in iio_sysfs_trigger_remove()