qcacmn: Use abstraction APIs for kernel APIs

Use non-inline OS-abstraction APIs to avoid direct
usage of kernel API's.

Use non-inline OS-abstraction APIs instead of OS APIs.

Change-Id: Ie4acfedc63a0e0e8ecbe358db711148db92bd8b6
This commit is contained in:
Debasis Das
2020-07-31 17:06:07 +05:30
committad av snandini
förälder 47108a8af2
incheckning 77a23e8f71
3 ändrade filer med 21 tillägg och 15 borttagningar

Visa fil

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2013-2021 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -49,6 +49,7 @@
#define CLD_DEBUGFS_DIR "cld"
#endif
#define DEBUGFS_BLOCK_NAME "dbglog_block"
#define DEBUGFS_BLOCK_PERM QDF_FILE_USR_READ
#define ATH_MODULE_NAME fwlog
#include <a_debug.h>
@@ -4135,22 +4136,22 @@ static const struct file_operations fops_dbglog_block = {
static void dbglog_debugfs_init(wmi_unified_t wmi_handle)
{
wmi_handle->debugfs_phy = debugfs_create_dir(CLD_DEBUGFS_DIR, NULL);
wmi_handle->debugfs_phy = qdf_debugfs_create_dir(CLD_DEBUGFS_DIR, NULL);
if (!wmi_handle->debugfs_phy) {
qdf_print("Failed to create WMI debug fs");
return;
}
debugfs_create_file(DEBUGFS_BLOCK_NAME, 0400,
wmi_handle->debugfs_phy, &wmi_handle->dbglog,
&fops_dbglog_block);
qdf_debugfs_create_entry(DEBUGFS_BLOCK_NAME, DEBUGFS_BLOCK_PERM,
wmi_handle->debugfs_phy, &wmi_handle->dbglog,
&fops_dbglog_block);
return;
}
static void dbglog_debugfs_remove(wmi_unified_t wmi_handle)
{
debugfs_remove_recursive(wmi_handle->debugfs_phy);
qdf_debugfs_remove_dir_recursive(wmi_handle->debugfs_phy);
}
#else