]> err.no Git - linux-2.6/blobdiff - include/linux/sysfs.h
ssb: Add CHIPCO IRQ access functions
[linux-2.6] / include / linux / sysfs.h
index b393bb44962430b71f34e52f7414cd2b9f1c9794..802710438a9e8a3b548d9549770268cb1ac2316b 100644 (file)
@@ -3,6 +3,8 @@
  *
  * Copyright (c) 2001,2002 Patrick Mochel
  * Copyright (c) 2004 Silicon Graphics, Inc.
+ * Copyright (c) 2007 SUSE Linux Products GmbH
+ * Copyright (c) 2007 Tejun Heo <teheo@suse.de>
  *
  * Please see Documentation/filesystems/sysfs.txt for more information.
  */
@@ -30,6 +32,8 @@ struct attribute {
 
 struct attribute_group {
        const char              *name;
+       int                     (*is_visible)(struct kobject *,
+                                             struct attribute *, int);
        struct attribute        **attrs;
 };
 
@@ -87,8 +91,6 @@ int __must_check sysfs_move_dir(struct kobject *kobj,
 
 int __must_check sysfs_create_file(struct kobject *kobj,
                                   const struct attribute *attr);
-int __must_check sysfs_update_file(struct kobject *kobj,
-                                  const struct attribute *attr);
 int __must_check sysfs_chmod_file(struct kobject *kobj, struct attribute *attr,
                                  mode_t mode);
 void sysfs_remove_file(struct kobject *kobj, const struct attribute *attr);
@@ -149,11 +151,6 @@ static inline int sysfs_create_file(struct kobject *kobj,
        return 0;
 }
 
-static inline int sysfs_update_file(struct kobject *kobj,
-                                   const struct attribute *attr)
-{
-       return 0;
-}
 static inline int sysfs_chmod_file(struct kobject *kobj,
                                   struct attribute *attr, mode_t mode)
 {