aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/base.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base/base.h')
-rw-r--r--drivers/base/base.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/base/base.h b/drivers/base/base.h
index ca2b0376685b..62a2cb5e1780 100644
--- a/drivers/base/base.h
+++ b/drivers/base/base.h
@@ -63,6 +63,18 @@ struct class_private {
63#define to_class(obj) \ 63#define to_class(obj) \
64 container_of(obj, struct class_private, class_subsys.kobj) 64 container_of(obj, struct class_private, class_subsys.kobj)
65 65
66/**
67 * struct device_private - structure to hold the private to the driver core portions of the device structure.
68 *
69 * @device - pointer back to the struct class that this structure is
70 * associated with.
71 *
72 * Nothing outside of the driver core should ever touch these fields.
73 */
74struct device_private {
75 struct device *device;
76};
77
66/* initialisation functions */ 78/* initialisation functions */
67extern int devices_init(void); 79extern int devices_init(void);
68extern int buses_init(void); 80extern int buses_init(void);