aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kobject_uevent.c
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2016-10-01 15:46:28 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-28 02:42:10 -0400
commitedbbf994bde89fcbb663566c40bf1a19c0cc8b1c (patch)
tree327352604607a0116f4701ea7cd33e5e684c4e4d /lib/kobject_uevent.c
parent07d9a380680d1c0eb51ef87ff2eab5c994949e69 (diff)
kobject: improve function-level documentation
In the first case, rename the second variable to correspond to the name found in the function parameter list. In the remaining cases, reorder the variables to correspond to their order in the parameter list. Issue detected using Coccinelle (http://coccinelle.lip6.fr/) Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/kobject_uevent.c')
-rw-r--r--lib/kobject_uevent.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c
index f6c2c1e7779c..9a2b811966eb 100644
--- a/lib/kobject_uevent.c
+++ b/lib/kobject_uevent.c
@@ -56,7 +56,7 @@ static const char *kobject_actions[] = {
56 * kobject_action_type - translate action string to numeric type 56 * kobject_action_type - translate action string to numeric type
57 * 57 *
58 * @buf: buffer containing the action string, newline is ignored 58 * @buf: buffer containing the action string, newline is ignored
59 * @len: length of buffer 59 * @count: length of buffer
60 * @type: pointer to the location to store the action type 60 * @type: pointer to the location to store the action type
61 * 61 *
62 * Returns 0 if the action string was recognized. 62 * Returns 0 if the action string was recognized.
@@ -154,8 +154,8 @@ static void cleanup_uevent_env(struct subprocess_info *info)
154/** 154/**
155 * kobject_uevent_env - send an uevent with environmental data 155 * kobject_uevent_env - send an uevent with environmental data
156 * 156 *
157 * @action: action that is happening
158 * @kobj: struct kobject that the action is happening to 157 * @kobj: struct kobject that the action is happening to
158 * @action: action that is happening
159 * @envp_ext: pointer to environmental data 159 * @envp_ext: pointer to environmental data
160 * 160 *
161 * Returns 0 if kobject_uevent_env() is completed with success or the 161 * Returns 0 if kobject_uevent_env() is completed with success or the
@@ -363,8 +363,8 @@ EXPORT_SYMBOL_GPL(kobject_uevent_env);
363/** 363/**
364 * kobject_uevent - notify userspace by sending an uevent 364 * kobject_uevent - notify userspace by sending an uevent
365 * 365 *
366 * @action: action that is happening
367 * @kobj: struct kobject that the action is happening to 366 * @kobj: struct kobject that the action is happening to
367 * @action: action that is happening
368 * 368 *
369 * Returns 0 if kobject_uevent() is completed with success or the 369 * Returns 0 if kobject_uevent() is completed with success or the
370 * corresponding error when it fails. 370 * corresponding error when it fails.