From 67eeb0b58981e2f657881fa44ac683fc365d0434 Mon Sep 17 00:00:00 2001 From: Patrick Mochel Date: Sun, 12 Jan 2003 22:34:13 -0600 Subject: sysfs: reinstate count parameter for sysfs_ops.store() methods. - Fixup bus, driver, and class methods. --- include/linux/device.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/linux/device.h b/include/linux/device.h index 7c4bc77b695d..17536217d0c2 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -98,7 +98,7 @@ 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); - ssize_t (*store)(struct bus_type *, const char * buf); + ssize_t (*store)(struct bus_type *, const char * buf, size_t count); }; #define BUS_ATTR(_name,_mode,_show,_store) \ @@ -141,7 +141,7 @@ extern void put_driver(struct device_driver * drv); struct driver_attribute { struct attribute attr; ssize_t (*show)(struct device_driver *, char * buf); - ssize_t (*store)(struct device_driver *, const char * buf); + ssize_t (*store)(struct device_driver *, const char * buf, size_t count); }; #define DRIVER_ATTR(_name,_mode,_show,_store) \ @@ -182,7 +182,7 @@ extern void put_devclass(struct device_class *); struct devclass_attribute { struct attribute attr; ssize_t (*show)(struct device_class *, char * buf); - ssize_t (*store)(struct device_class *, const char * buf); + ssize_t (*store)(struct device_class *, const char * buf, size_t count); }; #define DEVCLASS_ATTR(_name,_str,_mode,_show,_store) \ -- cgit v1.2.3