aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2008-01-22 18:17:41 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-07-22 00:54:51 -0400
commit7c71448b8aa80123fc521563d5f7c63a099d97ab (patch)
tree2605e4ce90c6ee0201eae83dc9b612321564feb7 /include/linux/device.h
parent16be63fd1670000b96b76cb55b6f1bead21b4c4b (diff)
class: move driver core specific parts to a private structure
This moves the portions of struct class that are dynamic (kobject and lock and lists) out of the main structure and into a dynamic, private, structure. Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index c1f72984875f..b0556082179b 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -35,6 +35,7 @@ struct device;
35struct device_driver; 35struct device_driver;
36struct driver_private; 36struct driver_private;
37struct class; 37struct class;
38struct class_private;
38struct bus_type; 39struct bus_type;
39struct bus_type_private; 40struct bus_type_private;
40 41
@@ -186,11 +187,6 @@ struct class {
186 const char *name; 187 const char *name;
187 struct module *owner; 188 struct module *owner;
188 189
189 struct kset subsys;
190 struct list_head devices;
191 struct list_head interfaces;
192 struct kset class_dirs;
193 struct semaphore sem; /* locks children, devices, interfaces */
194 struct class_attribute *class_attrs; 190 struct class_attribute *class_attrs;
195 struct device_attribute *dev_attrs; 191 struct device_attribute *dev_attrs;
196 struct kobject *dev_kobj; 192 struct kobject *dev_kobj;
@@ -204,6 +200,7 @@ struct class {
204 int (*resume)(struct device *dev); 200 int (*resume)(struct device *dev);
205 201
206 struct pm_ops *pm; 202 struct pm_ops *pm;
203 struct class_private *p;
207}; 204};
208 205
209extern struct kobject *sysfs_dev_block_kobj; 206extern struct kobject *sysfs_dev_block_kobj;