policy: clean up headers and code documentation
authorDjalal Harouni <tixxdz@opendz.org>
Sat, 7 Jun 2014 16:26:55 +0000 (17:26 +0100)
committerDaniel Mack <zonque@gmail.com>
Sat, 7 Jun 2014 16:28:35 +0000 (18:28 +0200)
Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
policy.c

index 5a9770dd6b7c05af17c957f7bdd4e15f56cf441c..6f2bb1f61aa1208f46955442e3556a4a5a14398c 100644 (file)
--- a/policy.c
+++ b/policy.c
  * your option) any later version.
  */
 
-#include <linux/device.h>
 #include <linux/fs.h>
-#include <linux/idr.h>
 #include <linux/init.h>
-#include <linux/module.h>
 #include <linux/mutex.h>
 #include <linux/sched.h>
 #include <linux/sizes.h>
@@ -129,7 +126,7 @@ exit_free:
 }
 
 /**
- * kdbus_policy_free - drop a policy database reference
+ * kdbus_policy_db_free - drop a policy database reference
  * @db:                The policy database
  */
 void kdbus_policy_db_free(struct kdbus_policy_db *db)
@@ -162,7 +159,7 @@ void kdbus_policy_db_free(struct kdbus_policy_db *db)
 }
 
 /**
- * kdbus_policy_new() - create a new policy database
+ * kdbus_policy_db_new() - create a new policy database
  * @db:                The location where to store the new database
  *
  * Return: 0 on success, negative errno on failure
@@ -294,7 +291,7 @@ kdbus_policy_cache_entry_new(struct kdbus_conn *conn_a,
 }
 
 /**
- * kdbus_policy_check_send_access() - check if one connection is allowed
+ * kdbus_policy_check_talk_access() - check if one connection is allowed
  *                                    to send a message to another connection
  * @db:                        The policy database
  * @conn_src:          The source connection