Searched refs:iio_evgen (Results 1 – 1 of 1) sorted by relevance
46 static struct iio_dummy_eventgen *iio_evgen; variable52 iio_evgen = kzalloc(sizeof(*iio_evgen), GFP_KERNEL); in iio_dummy_evgen_create()53 if (!iio_evgen) in iio_dummy_evgen_create()56 iio_evgen->irq_sim_domain = irq_domain_create_sim(NULL, in iio_dummy_evgen_create()58 if (IS_ERR(iio_evgen->irq_sim_domain)) { in iio_dummy_evgen_create()59 ret = PTR_ERR(iio_evgen->irq_sim_domain); in iio_dummy_evgen_create()60 kfree(iio_evgen); in iio_dummy_evgen_create()64 mutex_init(&iio_evgen->lock); in iio_dummy_evgen_create()79 if (!iio_evgen) in iio_dummy_evgen_get_irq()82 mutex_lock(&iio_evgen->lock); in iio_dummy_evgen_get_irq()[all …]