PATCH [1/2] Documentation/driver-model/device.txt: fix struct device_attribute
authorMike Murphy <mamurph@cs.clemson.edu>
Sun, 22 Feb 2009 06:17:14 +0000 (01:17 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 22 Feb 2009 17:27:15 +0000 (09:27 -0800)
Fix the presented definition of struct device_attribute to match the
actual definition in include/linux/device.h

Signed-off-by: Mike Murphy <mamurph[at]cs.clemson.edu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/driver-model/device.txt

index a05ec50..a7cbfff 100644 (file)
@@ -127,9 +127,11 @@ void unlock_device(struct device * dev);
 Attributes
 ~~~~~~~~~~
 struct device_attribute {
-        struct attribute        attr;
-        ssize_t (*show)(struct device * dev, char * buf, size_t count, loff_t off);
-        ssize_t (*store)(struct device * dev, const char * buf, size_t count, loff_t off);
+       struct attribute        attr;
+       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);
 };
 
 Attributes of devices can be exported via drivers using a simple