Should check the validity of adc_dev prior to dereferencing it.