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