diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-22 18:17:41 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-22 00:54:51 -0400 |
commit | 7c71448b8aa80123fc521563d5f7c63a099d97ab (patch) | |
tree | 2605e4ce90c6ee0201eae83dc9b612321564feb7 /include/linux | |
parent | 16be63fd1670000b96b76cb55b6f1bead21b4c4b (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')
-rw-r--r-- | include/linux/device.h | 7 |
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; | |||
35 | struct device_driver; | 35 | struct device_driver; |
36 | struct driver_private; | 36 | struct driver_private; |
37 | struct class; | 37 | struct class; |
38 | struct class_private; | ||
38 | struct bus_type; | 39 | struct bus_type; |
39 | struct bus_type_private; | 40 | struct 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 | ||
209 | extern struct kobject *sysfs_dev_block_kobj; | 206 | extern struct kobject *sysfs_dev_block_kobj; |