summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@osdl.org>2003-01-09 06:10:39 -0600
committerPatrick Mochel <mochel@osdl.org>2003-01-09 06:10:39 -0600
commitfa72b61fbae5678655f3f9e05abc292b4d5ecd64 (patch)
treef6af9dacbde6a241493987de5d21ea9d2e7a4b07
parent41385d6c79efda88712ed34ffc6abc833cf8c29d (diff)
sysfs: fixup subsystem attributes.
- Remove @count and @off from the show() and store() methods.
-rw-r--r--fs/sysfs/inode.c4
-rw-r--r--include/linux/kobject.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c
index 69fe8ccfda3e..3bbc05bfcb96 100644
--- a/fs/sysfs/inode.c
+++ b/fs/sysfs/inode.c
@@ -162,7 +162,7 @@ subsys_attr_show(struct kobject * kobj, struct attribute * attr, char * page)
ssize_t ret = 0;
if (sattr->show)
- ret = sattr->show(s,page,PAGE_SIZE,0);
+ ret = sattr->show(s,page);
return ret;
}
@@ -174,7 +174,7 @@ subsys_attr_store(struct kobject * kobj, struct attribute * attr, const char * p
ssize_t ret = 0;
if (sattr->store)
- ret = sattr->store(s,page,PAGE_SIZE,0);
+ ret = sattr->store(s,page);
return ret;
}
diff --git a/include/linux/kobject.h b/include/linux/kobject.h
index ff15fe1bc8fd..0cc01658044d 100644
--- a/include/linux/kobject.h
+++ b/include/linux/kobject.h
@@ -165,8 +165,8 @@ static inline void subsys_put(struct subsystem * s)
struct subsys_attribute {
struct attribute attr;
- ssize_t (*show)(struct subsystem *, char *, size_t, loff_t);
- ssize_t (*store)(struct subsystem *, const char *, size_t, loff_t);
+ ssize_t (*show)(struct subsystem *, char *);
+ ssize_t (*store)(struct subsystem *, const char *);
};
extern int subsys_create_file(struct subsystem * , struct subsys_attribute *);