/* Stop timer and free the resources allocated by adc_update_remove(). */
int32_t adc_update_remove(struct adc_update_desc *dev)
/* Stop timer and free the resources allocated by adc_update_remove(). */
int32_t adc_update_remove(struct adc_update_desc *dev)
{
	int32_t ret;
	if(!dev)
		return -1;
	ret = adc_update_activate(dev, false);
	if(ret != ADI_TMR_SUCCESS)
		return ret;
	free(dev);
	return ret;
}