Explorar el Código

qcacld-3.0: Replace hdd_context_t in wlan_hdd_debugfs.c

The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_context_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: Ie7fd294d48ba17a29b28fb9b8cbc5865f467f8ba
CRs-Fixed: 2100203
Jeff Johnson hace 7 años
padre
commit
2a9711b141
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  1. 5 5
      core/hdd/src/wlan_hdd_debugfs.c

+ 5 - 5
core/hdd/src/wlan_hdd_debugfs.c

@@ -64,7 +64,7 @@ static ssize_t __wcnss_wowenable_write(struct file *file,
 				     loff_t *ppos)
 {
 	hdd_adapter_t *pAdapter;
-	hdd_context_t *hdd_ctx;
+	struct hdd_context *hdd_ctx;
 	char cmd[MAX_USER_COMMAND_SIZE_WOWL_ENABLE + 1];
 	char *sptr, *token;
 	uint8_t wow_enable = 0;
@@ -184,7 +184,7 @@ static ssize_t __wcnss_wowpattern_write(struct file *file,
 				      loff_t *ppos)
 {
 	hdd_adapter_t *pAdapter = (hdd_adapter_t *) file->private_data;
-	hdd_context_t *hdd_ctx;
+	struct hdd_context *hdd_ctx;
 	char cmd[MAX_USER_COMMAND_SIZE_WOWL_PATTERN + 1];
 	char *sptr, *token;
 	uint8_t pattern_idx = 0;
@@ -303,7 +303,7 @@ static ssize_t __wcnss_patterngen_write(struct file *file,
 				      loff_t *ppos)
 {
 	hdd_adapter_t *pAdapter;
-	hdd_context_t *pHddCtx;
+	struct hdd_context *pHddCtx;
 	tSirAddPeriodicTxPtrn *addPeriodicTxPtrnParams;
 	tSirDelPeriodicTxPtrn *delPeriodicTxPtrnParams;
 
@@ -574,7 +574,7 @@ static ssize_t __wlan_hdd_read_power_debugfs(struct file *file,
 		size_t count, loff_t *pos)
 {
 	hdd_adapter_t *adapter;
-	hdd_context_t *hdd_ctx;
+	struct hdd_context *hdd_ctx;
 	QDF_STATUS status;
 	struct power_stats_response *chip_power_stats;
 	ssize_t ret_cnt = 0;
@@ -738,7 +738,7 @@ static int wlan_hdd_open_power_debugfs(struct inode *inode, struct file *file)
 static int __wcnss_debugfs_open(struct inode *inode, struct file *file)
 {
 	hdd_adapter_t *adapter;
-	hdd_context_t *hdd_ctx;
+	struct hdd_context *hdd_ctx;
 	int ret;
 
 	ENTER();