sysfs: Factor out sysfs_rename from sysfs_rename_dir and sysfs_move_dir
[pandora-kernel.git] / fs / sysfs / sysfs.h
index 98a15bf..ca52e7b 100644 (file)
@@ -130,6 +130,9 @@ int sysfs_create_subdir(struct kobject *kobj, const char *name,
                        struct sysfs_dirent **p_sd);
 void sysfs_remove_subdir(struct sysfs_dirent *sd);
 
+int sysfs_rename(struct sysfs_dirent *sd,
+       struct sysfs_dirent *new_parent_sd, const char *new_name);
+
 static inline struct sysfs_dirent *__sysfs_get(struct sysfs_dirent *sd)
 {
        if (sd) {