sysfs: Functions for adding/removing symlinks to/from attribute groups
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 25 Jan 2013 20:51:13 +0000 (21:51 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 25 Jan 2013 20:51:13 +0000 (21:51 +0100)
commit0bb8f3d6ae621945e6fa2102aa894f72b76a023e
tree3c81ce1a8011ed1d9c381ee3c5e2f97fe0844fe6
parentb1c0f99bfb89cd9b42e3119ab822a8102fa87909
sysfs: Functions for adding/removing symlinks to/from attribute groups

The most convenient way to expose ACPI power resources lists of a
device is to put symbolic links to sysfs directories representing
those resources into special attribute groups in the device's sysfs
directory.  For this purpose, it is necessary to be able to add
symbolic links to attribute groups.

For this reason, add sysfs helper functions for adding/removing
symbolic links to/from attribute groups, sysfs_add_link_to_group()
and sysfs_remove_link_from_group(), respectively.

This change set includes a build fix from David Rientjes.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysfs/group.c
fs/sysfs/symlink.c
fs/sysfs/sysfs.h
include/linux/sysfs.h