Skip to contentSkip to conversation

[PATCH driver model: fix show/store prototypes in doc.

PATCH Randy Dunlap 1 participant 1 message Jul 8, 2009 Documentation

lore
Share & tools
lore
#0 lore raw

From: vibi sreenivasan <[email protected]>

FIX prototypes for show & store method in struct driver_attribute

---
 Documentation/driver-model/driver.txt |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/driver-model/driver.txt +2 -2
@@ -207,8 +207,8 @@ Attributes
 ~~~~~~~~~~
 struct driver_attribute {
         struct attribute        attr;
-        ssize_t (*show)(struct device_driver *, char * buf, size_t count, loff_t off);
-        ssize_t (*store)(struct device_driver *, const char * buf, size_t count, loff_t off);
+        ssize_t (*show)(struct device_driver *driver, char *buf);
+        ssize_t (*store)(struct device_driver *, const char * buf, size_t count);
 };
 
 Device drivers can export attributes via their sysfs directories.