]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
sysfs: group.c: add kerneldoc for sysfs_remove_group
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Aug 2013 23:12:34 +0000 (16:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Aug 2013 23:12:34 +0000 (16:12 -0700)
sysfs_remove_group() never had kerneldoc, so add it, and fix up the
kerneldoc for sysfs_remove_groups() which didn't specify the parameters
properly.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysfs/group.c

index 642700131dd5ea219f1b491faad9290fd8b98665..4633b20b6ec3b8bcba00174cd375ecfd47241693 100644 (file)
@@ -189,6 +189,14 @@ int sysfs_update_group(struct kobject *kobj,
 }
 EXPORT_SYMBOL_GPL(sysfs_update_group);
 
+/**
+ * sysfs_remove_group: remove a group from a kobject
+ * @kobj:      kobject to remove the group from
+ * @grp:       group to remove
+ *
+ * This function removes a group of attributes from a kobject.  The attributes
+ * previously have to have been created for this group, otherwise it will fail.
+ */
 void sysfs_remove_group(struct kobject *kobj,
                        const struct attribute_group *grp)
 {
@@ -217,8 +225,8 @@ EXPORT_SYMBOL_GPL(sysfs_remove_group);
 /**
  * sysfs_remove_groups - remove a list of groups
  *
- * kobj:       The kobject for the groups to be removed from
- * groups:     NULL terminated list of groups to be removed
+ * @kobj:      The kobject for the groups to be removed from
+ * @groups:    NULL terminated list of groups to be removed
  *
  * If groups is not NULL, the all groups will be removed from the kobject
  */