summaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems/sysfs.txt
diff options
context:
space:
mode:
authorYani Ioannou2005-05-17 12:40:28 +0200
committerGreg Kroah-Hartman2005-06-21 00:15:32 +0200
commit3eb8c7836eb074b61d63597be3e4f085814ac4c0 (patch)
tree41256899f1451a7e4fe0c764e15195c967e988ca /Documentation/filesystems/sysfs.txt
parent[PATCH] Driver core: change device_attribute callbacks (diff)
downloadkernel-qcow2-linux-3eb8c7836eb074b61d63597be3e4f085814ac4c0.tar.gz
kernel-qcow2-linux-3eb8c7836eb074b61d63597be3e4f085814ac4c0.tar.xz
kernel-qcow2-linux-3eb8c7836eb074b61d63597be3e4f085814ac4c0.zip
[PATCH] Driver core: Documentation: update device attribute callbacks
Signed-off-by: Yani Ioannou <yani.ioannou@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'Documentation/filesystems/sysfs.txt')
-rw-r--r--Documentation/filesystems/sysfs.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/filesystems/sysfs.txt b/Documentation/filesystems/sysfs.txt
index 60f6c2c4d477..dc276598a65a 100644
--- a/Documentation/filesystems/sysfs.txt
+++ b/Documentation/filesystems/sysfs.txt
@@ -214,7 +214,7 @@ Other notes:
A very simple (and naive) implementation of a device attribute is:
-static ssize_t show_name(struct device * dev, char * buf)
+static ssize_t show_name(struct device *dev, struct device_attribute *attr, char *buf)
{
return sprintf(buf,"%s\n",dev->name);
}