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

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>

authored by

Mike Murphy and committed by
Linus Torvalds
245127db 3d92e8f3

+5 -3
+5 -3
Documentation/driver-model/device.txt
··· 127 Attributes 128 ~~~~~~~~~~ 129 struct device_attribute { 130 - struct attribute attr; 131 - ssize_t (*show)(struct device * dev, char * buf, size_t count, loff_t off); 132 - ssize_t (*store)(struct device * dev, const char * buf, size_t count, loff_t off); 133 }; 134 135 Attributes of devices can be exported via drivers using a simple
··· 127 Attributes 128 ~~~~~~~~~~ 129 struct device_attribute { 130 + struct attribute attr; 131 + ssize_t (*show)(struct device *dev, struct device_attribute *attr, 132 + char *buf); 133 + ssize_t (*store)(struct device *dev, struct device_attribute *attr, 134 + const char *buf, size_t count); 135 }; 136 137 Attributes of devices can be exported via drivers using a simple