/* Unregisters a callback. 
Unregisters a callback function implemented by the user. The callback should be disabled before it is unregistered. */
enum status_code freqm_unregister_callback(struct freqm_module *module, enum freqm_callback callback_type)
/* Unregisters a callback. 
Unregisters a callback function implemented by the user. The callback should be disabled before it is unregistered. */
enum status_code freqm_unregister_callback(struct freqm_module *module, enum freqm_callback callback_type)
{
	Assert(module);
	if (callback_type >= FREQM_CALLBACK_TYPE_NUM) {
		Assert(false);
		return STATUS_ERR_INVALID_ARG;
	}
	module->callback[callback_type] = NULL;
	return STATUS_OK;
}