Sfoglia il codice sorgente

qcacld-3.0: Replace hdd_context_t in wlan_hdd_debugfs_llstat.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: Id69553b8ef9cc8daad1e1c136c0edfccfb820860
CRs-Fixed: 2100150
Jeff Johnson 7 anni fa
parent
commit
03f8f3611d
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      core/hdd/src/wlan_hdd_debugfs_llstat.c

+ 3 - 3
core/hdd/src/wlan_hdd_debugfs_llstat.c

@@ -341,7 +341,7 @@ static ssize_t __wlan_hdd_read_ll_stats_debugfs(struct file *file,
 			char __user *buf, size_t count, loff_t *pos)
 {
 	hdd_adapter_t *adapter;
-	hdd_context_t *hdd_ctx;
+	struct hdd_context *hdd_ctx;
 	ssize_t ret = 0;
 
 	ENTER();
@@ -399,7 +399,7 @@ static int __wlan_hdd_open_ll_stats_debugfs(struct inode *inode,
 					    struct file *file)
 {
 	hdd_adapter_t *adapter;
-	hdd_context_t *hdd_ctx;
+	struct hdd_context *hdd_ctx;
 	int ret;
 
 	ENTER();
@@ -463,7 +463,7 @@ static int __wlan_hdd_release_ll_stats_debugfs(struct inode *inode,
 					    struct file *file)
 {
 	hdd_adapter_t *adapter;
-	hdd_context_t *hdd_ctx;
+	struct hdd_context *hdd_ctx;
 	int ret;
 
 	ENTER();