Re: [PATCH 2.6.10-rc1 3/4] driver-model: detach_state functions renamed
From: Tejun Heo
Date: Thu Nov 04 2004 - 02:50:43 EST
ma_03_detach_state_fn_rename.patch
This patch renames detach_{show,store}() functions which is used for
detach_state device interface node to detach_state_{show,store}().
Signed-off-by: Tejun Heo <tj@xxxxxxxxxxx>
Index: linux-export/drivers/base/interface.c
===================================================================
--- linux-export.orig/drivers/base/interface.c 2004-11-04 10:25:59.000000000 +0900
+++ linux-export/drivers/base/interface.c 2004-11-04 11:04:15.000000000 +0900
@@ -27,12 +27,13 @@
* driver's suspend method.
*/
-static ssize_t detach_show(struct device * dev, char * buf)
+static ssize_t detach_state_show(struct device * dev, char * buf)
{
return sprintf(buf, "%u\n", dev->detach_state);
}
-static ssize_t detach_store(struct device * dev, const char * buf, size_t n)
+static ssize_t detach_state_store(struct device * dev,
+ const char * buf, size_t n)
{
u32 state;
state = simple_strtoul(buf, NULL, 10);
@@ -42,7 +43,7 @@ static ssize_t detach_store(struct devic
return n;
}
-static DEVICE_ATTR(detach_state, 0644, detach_show, detach_store);
+static DEVICE_ATTR(detach_state, 0644, detach_state_show, detach_state_store);
struct attribute * dev_default_attrs[] = {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/