Skip to content

Commit

Permalink
[PATCH] Driver core: Documentation: update device attribute callbacks
Browse files Browse the repository at this point in the history
Signed-off-by: Yani Ioannou <yani.ioannou@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
yanii authored and gregkh committed Jun 20, 2005
1 parent 54b6f35 commit 3eb8c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/filesystems/sysfs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3eb8c78

Please sign in to comment.