From aac136f255575f8bdfb97b63d27525bcc5620938 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Tue, 8 Mar 2005 17:32:38 -0800 Subject: [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 Signed-off-by: Greg Kroah-Hartman --- include/linux/device.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux') 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 */ -- cgit v1.2.3