Commit 3eb8c7836eb074b61d63597be3e4f085814ac4c0

Authored by Yani Ioannou
Committed by Greg Kroah-Hartman
1 parent 54b6f35c99

[PATCH] Driver core: Documentation: update device attribute callbacks

Signed-off-by: Yani Ioannou <yani.ioannou@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

Documentation/filesystems/sysfs.txt
... ... @@ -214,7 +214,7 @@
214 214  
215 215 A very simple (and naive) implementation of a device attribute is:
216 216  
217   -static ssize_t show_name(struct device * dev, char * buf)
  217 +static ssize_t show_name(struct device *dev, struct device_attribute *attr, char *buf)
218 218 {
219 219 return sprintf(buf,"%s\n",dev->name);
220 220 }