aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/sysfs/file.c2
-rw-r--r--include/linux/sysfs.h5
2 files changed, 4 insertions, 3 deletions
diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c
index d0d79e6b6d11..1f4a3f877262 100644
--- a/fs/sysfs/file.c
+++ b/fs/sysfs/file.c
@@ -469,7 +469,7 @@ void sysfs_notify_dirent(struct sysfs_dirent *sd)
469} 469}
470EXPORT_SYMBOL_GPL(sysfs_notify_dirent); 470EXPORT_SYMBOL_GPL(sysfs_notify_dirent);
471 471
472void sysfs_notify(struct kobject *k, char *dir, char *attr) 472void sysfs_notify(struct kobject *k, const char *dir, const char *attr)
473{ 473{
474 struct sysfs_dirent *sd = k->sd; 474 struct sysfs_dirent *sd = k->sd;
475 475
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index d8e0230f1e68..b330e289d71f 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -119,7 +119,7 @@ int sysfs_add_file_to_group(struct kobject *kobj,
119void sysfs_remove_file_from_group(struct kobject *kobj, 119void sysfs_remove_file_from_group(struct kobject *kobj,
120 const struct attribute *attr, const char *group); 120 const struct attribute *attr, const char *group);
121 121
122void sysfs_notify(struct kobject *kobj, char *dir, char *attr); 122void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr);
123void sysfs_notify_dirent(struct sysfs_dirent *sd); 123void sysfs_notify_dirent(struct sysfs_dirent *sd);
124struct sysfs_dirent *sysfs_get_dirent(struct sysfs_dirent *parent_sd, 124struct sysfs_dirent *sysfs_get_dirent(struct sysfs_dirent *parent_sd,
125 const unsigned char *name); 125 const unsigned char *name);
@@ -229,7 +229,8 @@ static inline void sysfs_remove_file_from_group(struct kobject *kobj,
229{ 229{
230} 230}
231 231
232static inline void sysfs_notify(struct kobject *kobj, char *dir, char *attr) 232static inline void sysfs_notify(struct kobject *kobj, const char *dir,
233 const char *attr)
233{ 234{
234} 235}
235static inline void sysfs_notify_dirent(struct sysfs_dirent *sd) 236static inline void sysfs_notify_dirent(struct sysfs_dirent *sd)