lkml.org 
[lkml]   [2005]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 2.6.12-rc4 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 <yani.ioannou@gmail.com>

---
sysfs.txt | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)



diff -uprN -X dontdiff linux-2.6.12-rc4-sysfsdyncallback-deviceattr/Documentation/filesystems/sysfs.txt linux-2.6.12-rc4-sysfsdyncallback-deviceattr-update/Documentation/filesystems/sysfs.txt
--- linux-2.6.12-rc4-sysfsdyncallback-deviceattr/Documentation/filesystems/sysfs.txt 2005-05-16 20:36:09.000000000 -0400
+++ linux-2.6.12-rc4-sysfsdyncallback-deviceattr-update/Documentation/filesystems/sysfs.txt 2005-05-16 23:45:52.000000000 -0400
@@ -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);
}


\
 
 \ /
  Last update: 2005-05-17 12:48    [W:2.132 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site