diff options
Diffstat (limited to 'include/linux/sysfs.h')
| -rw-r--r-- | include/linux/sysfs.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index cd8f90bf51a7..30b2ebee6439 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h | |||
| @@ -438,26 +438,26 @@ static inline int sysfs_rename_link(struct kobject *kobj, struct kobject *target | |||
| 438 | return sysfs_rename_link_ns(kobj, target, old_name, new_name, NULL); | 438 | return sysfs_rename_link_ns(kobj, target, old_name, new_name, NULL); |
| 439 | } | 439 | } |
| 440 | 440 | ||
| 441 | static inline void sysfs_notify_dirent(struct sysfs_dirent *sd) | 441 | static inline void sysfs_notify_dirent(struct kernfs_node *kn) |
| 442 | { | 442 | { |
| 443 | kernfs_notify(sd); | 443 | kernfs_notify(kn); |
| 444 | } | 444 | } |
| 445 | 445 | ||
| 446 | static inline struct sysfs_dirent * | 446 | static inline struct kernfs_node *sysfs_get_dirent(struct kernfs_node *parent, |
| 447 | sysfs_get_dirent(struct sysfs_dirent *parent_sd, const unsigned char *name) | 447 | const unsigned char *name) |
| 448 | { | 448 | { |
| 449 | return kernfs_find_and_get(parent_sd, name); | 449 | return kernfs_find_and_get(parent, name); |
| 450 | } | 450 | } |
| 451 | 451 | ||
| 452 | static inline struct sysfs_dirent *sysfs_get(struct sysfs_dirent *sd) | 452 | static inline struct kernfs_node *sysfs_get(struct kernfs_node *kn) |
| 453 | { | 453 | { |
| 454 | kernfs_get(sd); | 454 | kernfs_get(kn); |
| 455 | return sd; | 455 | return kn; |
| 456 | } | 456 | } |
| 457 | 457 | ||
| 458 | static inline void sysfs_put(struct sysfs_dirent *sd) | 458 | static inline void sysfs_put(struct kernfs_node *kn) |
| 459 | { | 459 | { |
| 460 | kernfs_put(sd); | 460 | kernfs_put(kn); |
| 461 | } | 461 | } |
| 462 | 462 | ||
| 463 | #endif /* _SYSFS_H_ */ | 463 | #endif /* _SYSFS_H_ */ |
