]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/sysfs.h
sysfs: sysfs_chmod_file's attr can be const
[net-next-2.6.git] / include / linux / sysfs.h
index f2694eb4dd3dcb983ebaefd8f1e707b7130ed421..8bf06b64487cdb52ad4dd83f1fb181aba8e6350e 100644 (file)
@@ -136,8 +136,8 @@ int __must_check sysfs_create_file(struct kobject *kobj,
                                   const struct attribute *attr);
 int __must_check sysfs_create_files(struct kobject *kobj,
                                   const struct attribute **attr);
-int __must_check sysfs_chmod_file(struct kobject *kobj, struct attribute *attr,
-                                 mode_t mode);
+int __must_check sysfs_chmod_file(struct kobject *kobj,
+                                 const struct attribute *attr, mode_t mode);
 void sysfs_remove_file(struct kobject *kobj, const struct attribute *attr);
 void sysfs_remove_files(struct kobject *kobj, const struct attribute **attr);
 
@@ -225,7 +225,7 @@ static inline int sysfs_create_files(struct kobject *kobj,
 }
 
 static inline int sysfs_chmod_file(struct kobject *kobj,
-                                  struct attribute *attr, mode_t mode)
+                                  const struct attribute *attr, mode_t mode)
 {
        return 0;
 }