#include "iwl-trans.h"
 #include "iwl-dbg-tlv.h"
 
-void iwl_fw_dbg_copy_tlv(struct iwl_trans *trans, struct iwl_ucode_tlv *tlv,
-                        bool ext)
+void iwl_dbg_tlv_copy(struct iwl_trans *trans, struct iwl_ucode_tlv *tlv,
+                     bool ext)
 {
        struct iwl_apply_point_data *data;
        struct iwl_fw_ini_header *header = (void *)&tlv->data[0];
        data->offset += offset_size;
 }
 
-void iwl_alloc_dbg_tlv(struct iwl_trans *trans, size_t len, const u8 *data,
+void iwl_dbg_tlv_alloc(struct iwl_trans *trans, size_t len, const u8 *data,
                       bool ext)
 {
        struct iwl_ucode_tlv *tlv;
        }
 }
 
-void iwl_fw_dbg_free(struct iwl_trans *trans)
+void iwl_dbg_tlv_free(struct iwl_trans *trans)
 {
        int i;
 
        }
 }
 
-static int iwl_parse_fw_dbg_tlv(struct iwl_trans *trans, const u8 *data,
-                               size_t len)
+static int iwl_dbg_tlv_parse_bin(struct iwl_trans *trans, const u8 *data,
+                                size_t len)
 {
        struct iwl_ucode_tlv *tlv;
        enum iwl_ucode_tlv_type tlv_type;
                case IWL_UCODE_TLV_TYPE_REGIONS:
                case IWL_UCODE_TLV_TYPE_TRIGGERS:
                case IWL_UCODE_TLV_TYPE_DEBUG_FLOW:
-                       iwl_fw_dbg_copy_tlv(trans, tlv, true);
+                       iwl_dbg_tlv_copy(trans, tlv, true);
                        break;
                default:
                        WARN_ONCE(1, "Invalid TLV %x\n", tlv_type);
        return 0;
 }
 
-void iwl_load_fw_dbg_tlv(struct device *dev, struct iwl_trans *trans)
+void iwl_dbg_tlv_load_bin(struct device *dev, struct iwl_trans *trans)
 {
        const struct firmware *fw;
        int res;
        if (res)
                return;
 
-       iwl_alloc_dbg_tlv(trans, fw->size, fw->data, true);
-       iwl_parse_fw_dbg_tlv(trans, fw->data, fw->size);
+       iwl_dbg_tlv_alloc(trans, fw->size, fw->data, true);
+       iwl_dbg_tlv_parse_bin(trans, fw->data, fw->size);
 
        trans->dbg.external_ini_loaded = true;
        release_firmware(fw);
 
  *
  * GPL LICENSE SUMMARY
  *
- * Copyright (C) 2018 Intel Corporation
+ * Copyright (C) 2018 - 2019 Intel Corporation
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of version 2 of the GNU General Public License as
  *
  * BSD LICENSE
  *
- * Copyright (C) 2018 Intel Corporation
+ * Copyright (C) 2018 - 2019 Intel Corporation
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
 };
 
 struct iwl_trans;
-void iwl_load_fw_dbg_tlv(struct device *dev, struct iwl_trans *trans);
-void iwl_fw_dbg_free(struct iwl_trans *trans);
-void iwl_fw_dbg_copy_tlv(struct iwl_trans *trans, struct iwl_ucode_tlv *tlv,
-                        bool ext);
-void iwl_alloc_dbg_tlv(struct iwl_trans *trans, size_t len, const u8 *data,
+void iwl_dbg_tlv_load_bin(struct device *dev, struct iwl_trans *trans);
+void iwl_dbg_tlv_free(struct iwl_trans *trans);
+void iwl_dbg_tlv_copy(struct iwl_trans *trans, struct iwl_ucode_tlv *tlv,
+                     bool ext);
+void iwl_dbg_tlv_alloc(struct iwl_trans *trans, size_t len, const u8 *data,
                       bool ext);
 
 #endif /* __iwl_dbg_tlv_h__*/
 
        len -= sizeof(*ucode);
 
        if (iwlwifi_mod_params.enable_ini)
-               iwl_alloc_dbg_tlv(drv->trans, len, data, false);
+               iwl_dbg_tlv_alloc(drv->trans, len, data, false);
 
        while (len >= sizeof(*tlv)) {
                len -= sizeof(*tlv);
                case IWL_UCODE_TLV_TYPE_TRIGGERS:
                case IWL_UCODE_TLV_TYPE_DEBUG_FLOW:
                        if (iwlwifi_mod_params.enable_ini)
-                               iwl_fw_dbg_copy_tlv(drv->trans, tlv, false);
+                               iwl_dbg_tlv_copy(drv->trans, tlv, false);
                        break;
                case IWL_UCODE_TLV_CMD_VERSIONS:
                        if (tlv_len % sizeof(struct iwl_fw_cmd_version)) {
        init_completion(&drv->request_firmware_complete);
        INIT_LIST_HEAD(&drv->list);
 
-       iwl_load_fw_dbg_tlv(drv->trans->dev, drv->trans);
+       iwl_dbg_tlv_load_bin(drv->trans->dev, drv->trans);
 
 #ifdef CONFIG_IWLWIFI_DEBUGFS
        /* Create the device debugfs entries. */
 err_fw:
 #ifdef CONFIG_IWLWIFI_DEBUGFS
        debugfs_remove_recursive(drv->dbgfs_drv);
+       iwl_dbg_tlv_free(drv->trans);
 #endif
-       iwl_fw_dbg_free(drv->trans);
        kfree(drv);
 err:
        return ERR_PTR(ret);
        debugfs_remove_recursive(drv->dbgfs_drv);
 #endif
 
-       iwl_fw_dbg_free(drv->trans);
+       iwl_dbg_tlv_free(drv->trans);
 
        kfree(drv);
 }