Searched refs:iio_evgen (Results 1 – 1 of 1) sorted by relevance
44 static struct iio_dummy_eventgen *iio_evgen; variable50 iio_evgen = kzalloc(sizeof(*iio_evgen), GFP_KERNEL); in iio_dummy_evgen_create()51 if (!iio_evgen) in iio_dummy_evgen_create()54 iio_evgen->irq_sim_domain = irq_domain_create_sim(NULL, in iio_dummy_evgen_create()56 if (IS_ERR(iio_evgen->irq_sim_domain)) { in iio_dummy_evgen_create()57 ret = PTR_ERR(iio_evgen->irq_sim_domain); in iio_dummy_evgen_create()58 kfree(iio_evgen); in iio_dummy_evgen_create()62 mutex_init(&iio_evgen->lock); in iio_dummy_evgen_create()77 if (!iio_evgen) in iio_dummy_evgen_get_irq()80 mutex_lock(&iio_evgen->lock); in iio_dummy_evgen_get_irq()[all …]