driver-core: merge private parts of class and bus

As classes and busses are pretty much the same thing, and we want to
merge them together into a 'subsystem' in the future, let us share the
same private data parts to make that merge easier.

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Kay Sievers
2010-11-15 23:13:18 +01:00
committed by Greg Kroah-Hartman
parent 14c05aa399
commit 6b6e39a6a8
5 changed files with 64 additions and 78 deletions

View File

@@ -30,9 +30,8 @@ struct device_private;
struct device_driver;
struct driver_private;
struct class;
struct class_private;
struct subsys_private;
struct bus_type;
struct bus_type_private;
struct device_node;
struct bus_attribute {
@@ -65,7 +64,7 @@ struct bus_type {
const struct dev_pm_ops *pm;
struct bus_type_private *p;
struct subsys_private *p;
};
extern int __must_check bus_register(struct bus_type *bus);
@@ -213,7 +212,7 @@ struct class {
const struct dev_pm_ops *pm;
struct class_private *p;
struct subsys_private *p;
};
struct class_dev_iter {