PATCH [1/2] Documentation/driver-model/device.txt: fix struct device_attribute

From: Mike Murphy
Date: Sun Feb 22 2009 - 01:17:26 EST


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>
--- linux-2.6.28.5/Documentation/driver-model/device.txt 2009-02-12 12:51:15.000000000 -0500
+++ docfix/Documentation/driver-model/device.txt 2009-02-22 00:42:58.000000000 -0500
@@ -127,9 +127,11 @@
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