Documentation: update device attribute callbacks
PATCH 3/15 Documentation: update device attribute callbacks
The following 11 patches update all the device_attribute callback functions in the kernel to reflect the new function signatures. The patches were mainly automatically generated with scripts nearly identical to the previously submitted ones.
Signed-off-by Yani Ioannou <[email protected]>
---
sysfs.txt | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
Documentation/filesystems/sysfs.txt +1 -1
@@ -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); }