diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2006-07-03 17:31:12 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-26 00:08:38 -0400 |
commit | a2de48cace5d0993da6cfa28b276ae724dc3569b (patch) | |
tree | e4b1107ec3167c8d0064fe756bde6e0d53cf8c93 /include/linux/device.h | |
parent | 2620efef7029bb040430f50f0fc148f2d5e002ad (diff) |
Driver core: add device_rename function
The network layer needs this to convert to using struct device instead
of a struct class_device.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 3122bd25ce42..3400e09bf458 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -380,6 +380,7 @@ extern int device_add(struct device * dev); | |||
380 | extern void device_del(struct device * dev); | 380 | extern void device_del(struct device * dev); |
381 | extern int device_for_each_child(struct device *, void *, | 381 | extern int device_for_each_child(struct device *, void *, |
382 | int (*fn)(struct device *, void *)); | 382 | int (*fn)(struct device *, void *)); |
383 | extern int device_rename(struct device *dev, char *new_name); | ||
383 | 384 | ||
384 | /* | 385 | /* |
385 | * Manual binding of a device to driver. See drivers/base/bus.c | 386 | * Manual binding of a device to driver. See drivers/base/bus.c |