diff options
| author | Kay Sievers <kay.sievers@vrfy.org> | 2005-03-08 17:32:38 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-03-08 17:32:38 -0800 |
| commit | aac136f255575f8bdfb97b63d27525bcc5620938 (patch) | |
| tree | ea58103a8920677802d03cd7f5560507fed12614 /include | |
| parent | 9b723aaac44759ea51c5af243918d2e62ea3f188 (diff) | |
[PATCH] class core: export MAJOR/MINOR to the hotplug env
Move the creation of the sysfs "dev" file of a class device into the
driver core. The struct class_device contains a dev_t value now. If set,
the driver core will create the "dev" file containing the major/minor
numbers automatically.
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'include')
| -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 786e1591102b..acec2a761ea0 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -184,6 +184,7 @@ struct class_device { struct kobject kobj; struct class * class; /* required */ + dev_t devt; /* dev_t, creates the sysfs "dev" */ struct device * dev; /* not necessary, but nice to have */ void * class_data; /* class-specific data */ |
