This should really check that ````adc_dev->driver->set_queue```` is not NULL before dereferencing it.