qcacld-3.0: Rename file name and function name for sysfs 'channel'

Rename file name and modify function names to keep it inline
with sysfs attribute name 'channel'

Change-Id: I9c73e572bdb80edc3431180448dffd9843d6a720
CRs-Fixed: 2731064
This commit is contained in:
Srinivas Girigowda 2020-07-09 09:52:03 -07:00 • committed by snandini
commit 5883ffbcba
5 changed files with 23 additions and 23 deletions

6
Kbuild
View file

@ -260,8 +260,8 @@ endif
ifeq ($(CONFIG_WLAN_SYSFS), y)
HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs.o
ifeq ($(CONFIG_WLAN_SYSFS_GET_CHANNEL), y)
HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_get_channel.o
ifeq ($(CONFIG_WLAN_SYSFS_CHANNEL), y)
HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_channel.o
endif
ifeq ($(CONFIG_WLAN_SET_FW_MODE_CFG), y)
HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_set_fw_mode_cfg.o
@ -2785,7 +2785,7 @@ cppflags-$(CONFIG_DFS_FCC_TYPE4_DURATION_CHECK) += -DDFS_FCC_TYPE4_DURATION_CHEC
endif
cppflags-$(CONFIG_WLAN_SYSFS) += -DWLAN_SYSFS
cppflags-$(CONFIG_WLAN_SYSFS_GET_CHANNEL) += -DWLAN_SYSFS_GET_CHANNEL
cppflags-$(CONFIG_WLAN_SYSFS_CHANNEL) += -DWLAN_SYSFS_CHANNEL
cppflags-$(CONFIG_FEATURE_BECN_STATS) += -DWLAN_FEATURE_BEACON_RECEPTION_STATS
cppflags-$(CONFIG_WLAN_SYSFS_CONNECT_INFO) += -DWLAN_SYSFS_CONNECT_INFO

View file

@ -196,7 +196,7 @@ CONFIG_WLAN_SYSFS := y
ifeq ($(CONFIG_WLAN_SYSFS), y)
CONFIG_WLAN_SYSFS_GET_STA_INFO := y
CONFIG_WLAN_SYSFS_GET_CHANNEL := y
CONFIG_WLAN_SYSFS_CHANNEL := y
CONFIG_WLAN_SET_FW_MODE_CFG := y
CONFIG_WLAN_SYSFS_MEM_STATS := y
CONFIG_WLAN_REASSOC := y

View file

@ -15,17 +15,17 @@
*/
/**
* DOC: wlan_hdd_sysfs_get_channel.h
* DOC: wlan_hdd_sysfs_channel.h
*
* implementation for creating sysfs file channel
* Implementation for creating sysfs file channel
*/
#ifndef _WLAN_HDD_SYSFS_GET_CHANNEL_H
#define _WLAN_HDD_SYSFS_GET_CHANNEL_H
#ifndef _WLAN_HDD_SYSFS_CHANNEL_H
#define _WLAN_HDD_SYSFS_CHANNEL_H
#if defined(WLAN_SYSFS) && defined(WLAN_SYSFS_GET_CHANNEL)
#if defined(WLAN_SYSFS) && defined(WLAN_SYSFS_CHANNEL)
/**
* hdd_sysfs_get_channel_interface_create() - API to create channel sysfs
* hdd_sysfs_channel_interface_create() - API to create channel sysfs
* @adapter: pointer to adapter
*
* this file is created for SAP adapter.
@ -37,25 +37,25 @@
*
* Return: none
*/
void hdd_sysfs_get_channel_interface_create(struct hdd_adapter *adapter);
void hdd_sysfs_channel_interface_create(struct hdd_adapter *adapter);
/**
* hdd_sysfs_get_channel_interface_destroy() - API to destroy channel
* hdd_sysfs_channel_interface_destroy() - API to destroy channel
* @adapter: pointer to adapter
*
* Return: none
*/
void hdd_sysfs_get_channel_interface_destroy(struct hdd_adapter *adapter);
void hdd_sysfs_channel_interface_destroy(struct hdd_adapter *adapter);
#else
static inline
void hdd_sysfs_get_channel_interface_create(struct hdd_adapter *adapter)
void hdd_sysfs_channel_interface_create(struct hdd_adapter *adapter)
{
}
static inline
void hdd_sysfs_get_channel_interface_destroy(struct hdd_adapter *adapter)
void hdd_sysfs_channel_interface_destroy(struct hdd_adapter *adapter)
{
}
#endif
#endif /* #ifndef _WLAN_HDD_SYSFS_GET_CHANNEL_H */
#endif /* #ifndef _WLAN_HDD_SYSFS_CHANNEL_H */

View file

@ -38,7 +38,7 @@
#endif
#include "osif_sync.h"
#include "wlan_hdd_sysfs_get_sta_info.h"
#include "wlan_hdd_sysfs_get_channel.h"
#include "wlan_hdd_sysfs_channel.h"
#include <wlan_hdd_sysfs_set_fw_mode_cfg.h>
#include <wlan_hdd_sysfs_reassoc.h>
#include <wlan_hdd_sysfs_mem_stats.h>
@ -702,7 +702,7 @@ hdd_sysfs_destroy_sta_adapter_root_obj(struct hdd_adapter *adapter)
static void
hdd_sysfs_create_sap_adapter_root_obj(struct hdd_adapter *adapter)
{
hdd_sysfs_get_channel_interface_create(adapter);
hdd_sysfs_channel_interface_create(adapter);
hdd_sysfs_get_sta_info_interface_create(adapter);
hdd_sysfs_crash_inject_create(adapter);
hdd_sysfs_suspend_create(adapter);
@ -750,7 +750,7 @@ hdd_sysfs_destroy_sap_adapter_root_obj(struct hdd_adapter *adapter)
hdd_sysfs_suspend_destroy(adapter);
hdd_sysfs_crash_inject_destroy(adapter);
hdd_sysfs_get_sta_info_interface_destroy(adapter);
hdd_sysfs_get_channel_interface_destroy(adapter);
hdd_sysfs_channel_interface_destroy(adapter);
}
static void

View file

@ -15,14 +15,14 @@
*/
/**
* DOC: wlan_hdd_sysfs_get_channel.c
* DOC: wlan_hdd_sysfs_channel.c
*
* implementation for creating sysfs file channel
*/
#include <wlan_hdd_includes.h>
#include "osif_vdev_sync.h"
#include "wlan_hdd_sysfs_get_channel.h"
#include "wlan_hdd_sysfs_channel.h"
static ssize_t __show_channel_number(struct net_device *net_dev, char *buf)
{
@ -80,7 +80,7 @@ static ssize_t show_channel_number(struct device *dev,
static DEVICE_ATTR(channel, 0444, show_channel_number, NULL);
void hdd_sysfs_get_channel_interface_create(struct hdd_adapter *adapter)
void hdd_sysfs_channel_interface_create(struct hdd_adapter *adapter)
{
int error;
@ -89,7 +89,7 @@ void hdd_sysfs_get_channel_interface_create(struct hdd_adapter *adapter)
hdd_err("Could not create channel sysfs file");
}
void hdd_sysfs_get_channel_interface_destroy(struct hdd_adapter *adapter)
void hdd_sysfs_channel_interface_destroy(struct hdd_adapter *adapter)
{
device_remove_file(&adapter->dev->dev, &dev_attr_channel);
}