/* Unregisters a USB device callback. 
Unregisters an asynchronous callback implemented by the user. Removing it from the internal callback registration table. */
enum status_code usb_device_unregister_callback(struct usb_module *module_inst, enum usb_device_callback callback_type)
/* Unregisters a USB device callback. 
Unregisters an asynchronous callback implemented by the user. Removing it from the internal callback registration table. */
enum status_code usb_device_unregister_callback(struct usb_module *module_inst, enum usb_device_callback callback_type)
{
	Assert(module_inst);
	module_inst->device_callback[callback_type] = NULL;
	module_inst->device_registered_callback_mask &= ~_usb_device_irq_bits[callback_type];
	return STATUS_OK;
}