From: Yani Ioannou Date: Tue, 17 May 2005 10:40:28 +0000 (-0400) Subject: [PATCH] Driver core: Documentation: update device attribute callbacks X-Git-Tag: v2.6.13-rc4~130^2~203^2^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3eb8c7836eb074b61d63597be3e4f085814ac4c0;p=platform%2Fupstream%2Fkernel-adaptation-pc.git [PATCH] Driver core: Documentation: update device attribute callbacks Signed-off-by: Yani Ioannou Signed-off-by: Greg Kroah-Hartman --- diff --git a/Documentation/filesystems/sysfs.txt b/Documentation/filesystems/sysfs.txt index 60f6c2c..dc27659 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); }