diff options
author | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2015-04-22 19:36:06 +0300 |
---|---|---|
committer | Peter Huewe <peterhuewe@gmx.de> | 2015-10-19 01:01:19 +0200 |
commit | 37c1c04cca920de8a68285751b2c7b3d937ad50c (patch) | |
tree | 3765e559cc8cce4341f9e26400c23d0f1b1ee487 /include/linux | |
parent | 399235dc6e95400a1322a9999e92073bc572f0c8 (diff) | |
download | linux-37c1c04cca920de8a68285751b2c7b3d937ad50c.tar.gz linux-37c1c04cca920de8a68285751b2c7b3d937ad50c.tar.bz2 linux-37c1c04cca920de8a68285751b2c7b3d937ad50c.zip |
sysfs: added __compat_only_sysfs_link_entry_to_kobj()
Added a new function __compat_only_sysfs_link_group_to_kobj() that adds
a symlink from attribute or group to a kobject. This needed for
maintaining backwards compatibility with PPI attributes in the TPM
driver.
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/sysfs.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index 9f65758311a4..ea090eaf468c 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h @@ -268,6 +268,9 @@ int sysfs_add_link_to_group(struct kobject *kobj, const char *group_name, struct kobject *target, const char *link_name); void sysfs_remove_link_from_group(struct kobject *kobj, const char *group_name, const char *link_name); +int __compat_only_sysfs_link_entry_to_kobj(struct kobject *kobj, + struct kobject *target_kobj, + const char *target_name); void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr); @@ -451,6 +454,14 @@ static inline void sysfs_remove_link_from_group(struct kobject *kobj, { } +static inline int __compat_only_sysfs_link_entry_to_kobj( + struct kobject *kobj, + struct kobject *target_kobj, + const char *target_name) +{ + return 0; +} + static inline void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr) { |