summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@osdl.org>2003-01-09 05:04:45 -0600
committerPatrick Mochel <mochel@osdl.org>2003-01-09 05:04:45 -0600
commit0f902ed5f03360a9a0a32c5aa742262c55f61c40 (patch)
treec8299c04afd13ba7053065f49ede0fab2a1f810b /include/linux
parent2c0145c637171bf84ae2088ef606f9afbe38dfc2 (diff)
sysfs: fixup bus, class, and driver attribute methods.
Remove @count and @off parameters from show() and store() methods.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/device.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 2076d9c6ae4b..2e370a0eb3f5 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -97,8 +97,8 @@ int bus_for_each_drv(struct bus_type * bus, struct device_driver * start,
struct bus_attribute {
struct attribute attr;
- ssize_t (*show)(struct bus_type *, char * buf, size_t count, loff_t off);
- ssize_t (*store)(struct bus_type *, const char * buf, size_t count, loff_t off);
+ ssize_t (*show)(struct bus_type *, char * buf);
+ ssize_t (*store)(struct bus_type *, const char * buf);
};
#define BUS_ATTR(_name,_mode,_show,_store) \
@@ -140,8 +140,8 @@ extern void put_driver(struct device_driver * drv);
struct driver_attribute {
struct attribute attr;
- ssize_t (*show)(struct device_driver *, char * buf, size_t count, loff_t off);
- ssize_t (*store)(struct device_driver *, const char * buf, size_t count, loff_t off);
+ ssize_t (*show)(struct device_driver *, char * buf);
+ ssize_t (*store)(struct device_driver *, const char * buf);
};
#define DRIVER_ATTR(_name,_mode,_show,_store) \
@@ -181,8 +181,8 @@ extern void put_devclass(struct device_class *);
struct devclass_attribute {
struct attribute attr;
- ssize_t (*show)(struct device_class *, char * buf, size_t count, loff_t off);
- ssize_t (*store)(struct device_class *, const char * buf, size_t count, loff_t off);
+ ssize_t (*show)(struct device_class *, char * buf);
+ ssize_t (*store)(struct device_class *, const char * buf);
};
#define DEVCLASS_ATTR(_name,_str,_mode,_show,_store) \