aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/group.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-21 19:12:34 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-21 19:12:34 -0400
commitf9ae443b5a1aa3d34d57df966a220a51a854d4c8 (patch)
tree9c01291443ac0771924fab87b1b08e85c8aabbd4 /fs/sysfs/group.c
parent16aebf1c5d30701c3e2733d0c1a0ee3236fd9eec (diff)
sysfs: group.c: add kerneldoc for sysfs_remove_group
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>
Diffstat (limited to 'fs/sysfs/group.c')
-rw-r--r--fs/sysfs/group.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/fs/sysfs/group.c b/fs/sysfs/group.c
index 642700131dd5..4633b20b6ec3 100644
--- a/fs/sysfs/group.c
+++ b/fs/sysfs/group.c
@@ -189,6 +189,14 @@ int sysfs_update_group(struct kobject *kobj,
189} 189}
190EXPORT_SYMBOL_GPL(sysfs_update_group); 190EXPORT_SYMBOL_GPL(sysfs_update_group);
191 191
192/**
193 * sysfs_remove_group: remove a group from a kobject
194 * @kobj: kobject to remove the group from
195 * @grp: group to remove
196 *
197 * This function removes a group of attributes from a kobject. The attributes
198 * previously have to have been created for this group, otherwise it will fail.
199 */
192void sysfs_remove_group(struct kobject *kobj, 200void sysfs_remove_group(struct kobject *kobj,
193 const struct attribute_group *grp) 201 const struct attribute_group *grp)
194{ 202{
@@ -217,8 +225,8 @@ EXPORT_SYMBOL_GPL(sysfs_remove_group);
217/** 225/**
218 * sysfs_remove_groups - remove a list of groups 226 * sysfs_remove_groups - remove a list of groups
219 * 227 *
220 * kobj: The kobject for the groups to be removed from 228 * @kobj: The kobject for the groups to be removed from
221 * groups: NULL terminated list of groups to be removed 229 * @groups: NULL terminated list of groups to be removed
222 * 230 *
223 * If groups is not NULL, the all groups will be removed from the kobject 231 * If groups is not NULL, the all groups will be removed from the kobject
224 */ 232 */