Explorar o código

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

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

Change-Id: Id4e366bea50d1bda95ee02cd7edd02691d0f70c6
CRs-Fixed: 2731064
Srinivas Girigowda %!s(int64=4) %!d(string=hai) anos
pai
achega
1445904715
Modificáronse 2 ficheiros con 15 adicións e 15 borrados
  1. 11 11
      core/hdd/src/wlan_hdd_sysfs_dp_trace.c
  2. 4 4
      core/hdd/src/wlan_hdd_sysfs_dp_trace.h

+ 11 - 11
core/hdd/src/wlan_hdd_sysfs_dp_trace.c

@@ -17,9 +17,9 @@
 /**
  * DOC: wlan_hdd_sysfs_dp_trace.c
  *
- * implementation for creating sysfs files:
+ * Implementation for creating sysfs files:
  *
- * set_dp_trace
+ * dp_trace
  * dump_dp_trace
  * clear_dp_trace
  */
@@ -31,7 +31,7 @@
 #include "qdf_trace.h"
 
 static ssize_t
-__hdd_sysfs_set_dp_trace_store(struct hdd_context *hdd_ctx,
+__hdd_sysfs_dp_trace_store(struct hdd_context *hdd_ctx,
 			       struct kobj_attribute *attr,
 			       const char *buf,
 			       size_t count)
@@ -84,7 +84,7 @@ __hdd_sysfs_set_dp_trace_store(struct hdd_context *hdd_ctx,
 }
 
 static ssize_t
-hdd_sysfs_set_dp_trace_store(struct kobject *kobj,
+hdd_sysfs_dp_trace_store(struct kobject *kobj,
 			     struct kobj_attribute *attr,
 			     const char *buf,
 			     size_t count)
@@ -103,7 +103,7 @@ hdd_sysfs_set_dp_trace_store(struct kobject *kobj,
 	if (errno_size)
 		return errno_size;
 
-	errno_size = __hdd_sysfs_set_dp_trace_store(hdd_ctx, attr,
+	errno_size = __hdd_sysfs_dp_trace_store(hdd_ctx, attr,
 						    buf, count);
 
 	osif_psoc_sync_op_stop(psoc_sync);
@@ -111,9 +111,9 @@ hdd_sysfs_set_dp_trace_store(struct kobject *kobj,
 	return errno_size;
 }
 
-static struct kobj_attribute set_dp_trace_attribute =
-	__ATTR(set_dp_trace, 0220, NULL,
-	       hdd_sysfs_set_dp_trace_store);
+static struct kobj_attribute dp_trace_attribute =
+	__ATTR(dp_trace, 0220, NULL,
+	       hdd_sysfs_dp_trace_store);
 
 static uint32_t dump_dp_trace_count = 0;
 
@@ -308,9 +308,9 @@ int hdd_sysfs_dp_trace_create(struct kobject *driver_kobject)
 	}
 
 	error = sysfs_create_file(driver_kobject,
-				  &set_dp_trace_attribute.attr);
+				  &dp_trace_attribute.attr);
 	if (error)
-		hdd_err("could not create set_dp_trace sysfs file");
+		hdd_err("could not create dp_trace sysfs file");
 
 	error = sysfs_create_file(driver_kobject,
 				  &dump_dp_trace_attribute.attr);
@@ -334,5 +334,5 @@ hdd_sysfs_dp_trace_destroy(struct kobject *driver_kobject)
 	}
 	sysfs_remove_file(driver_kobject, &clear_dp_trace_attribute.attr);
 	sysfs_remove_file(driver_kobject, &dump_dp_trace_attribute.attr);
-	sysfs_remove_file(driver_kobject, &set_dp_trace_attribute.attr);
+	sysfs_remove_file(driver_kobject, &dp_trace_attribute.attr);
 }

+ 4 - 4
core/hdd/src/wlan_hdd_sysfs_dp_trace.h

@@ -17,9 +17,9 @@
 /**
  * DOC: wlan_hdd_sysfs_dp_trace.h
  *
- * implementation for creating sysfs files:
+ * Implementation for creating sysfs files:
  *
- * set_dp_trace
+ * dp_trace
  * dump_dp_trace
  * clear_dp_trace
  */
@@ -37,12 +37,12 @@
  * hdd_sysfs_dp_trace_create() - API to create dp trace related files
  * @driver_kobject: sysfs driver kobject
  *
- * file path: /sys/kernel/wifi/set_dp_trace
+ * file path: /sys/kernel/wifi/dp_trace
  *            /sys/kernel/wifi/dump_dp_trace
  *            /sys/kernel/wifi/clear_dp_trace
  *
  * usage:
- *      echo [arg_0] [arg_1] [arg_2]> set_dp_trace
+ *      echo [arg_0] [arg_1] [arg_2]> dp_trace
  *      echo [0/1] > dump_dp_trace
  *      echo 2 [count] > dump_dp_trace
  *      cat dump_dp_trace