aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorTrent Piepho <tpiepho@freescale.com>2008-09-25 19:45:13 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2008-10-16 12:24:51 -0400
commit8c0e3998f5b71e68fe6b6e489a92e052715e563c (patch)
treedf57b05090964df2138c8b59d3796c8509e92ed5 /fs
parentd8bf254089a6c31d7d01a4d1d2f1861662900855 (diff)
sysfs: Make dir and name args to sysfs_notify() const
Because they can be, and because code like this produces a warning if they're not: struct device_attribute dev_attr; sysfs_notify(&kobj, NULL, dev_attr.attr.name); Signed-off-by: Trent Piepho <tpiepho@freescale.com> CC: Neil Brown <neilb@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs')
-rw-r--r--fs/sysfs/file.c2
1 files changed, 1 insertions, 1 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