summaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorYani Ioannou2005-05-17 12:39:34 +0200
committerGreg Kroah-Hartman2005-06-21 00:15:31 +0200
commit54b6f35c99974e99e64c05c2895718355123c55f (patch)
tree321d08c397bc26b49c706ca5b86de7003c2329c0 /include/linux/device.h
parent[PATCH] driver core: fix error handling in bus_add_device (diff)
downloadkernel-qcow2-linux-54b6f35c99974e99e64c05c2895718355123c55f.tar.gz
kernel-qcow2-linux-54b6f35c99974e99e64c05c2895718355123c55f.tar.xz
kernel-qcow2-linux-54b6f35c99974e99e64c05c2895718355123c55f.zip
[PATCH] Driver core: change device_attribute callbacks
This patch adds the device_attribute paramerter to the device_attribute store and show sysfs callback functions, and passes a reference to the attribute when the callbacks are called. Signed-off-by: Yani Ioannou <yani.ioannou@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 91aac349b9a7..7b781a72b293 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -335,8 +335,10 @@ extern void driver_attach(struct device_driver * drv);
struct device_attribute {
struct attribute attr;
- ssize_t (*show)(struct device * dev, char * buf);
- ssize_t (*store)(struct device * dev, const char * buf, size_t count);
+ ssize_t (*show)(struct device *dev, struct device_attribute *attr,
+ char *buf);
+ ssize_t (*store)(struct device *dev, struct device_attribute *attr,
+ const char *buf, size_t count);
};
#define DEVICE_ATTR(_name,_mode,_show,_store) \