diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2006-07-03 14:31:12 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-25 21:08:38 -0700 |
commit | a2de48cace5d0993da6cfa28b276ae724dc3569b (patch) | |
tree | e4b1107ec3167c8d0064fe756bde6e0d53cf8c93 /include/linux/device.h | |
parent | 2620efef7029bb040430f50f0fc148f2d5e002ad (diff) | |
download | linux-a2de48cace5d0993da6cfa28b276ae724dc3569b.tar.gz |
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); extern void device_del(struct device * dev); extern int device_for_each_child(struct device *, void *, int (*fn)(struct device *, void *)); +extern int device_rename(struct device *dev, char *new_name); /* * Manual binding of a device to driver. See drivers/base/bus.c |