diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-12-16 15:23:36 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-03-24 19:38:25 -0400 |
commit | fb069a5d132fb926ed17af3211a114ac7cf27d7a (patch) | |
tree | c104d9df7c83c27e3785265fb7412fd9332bc10a /include/linux/device.h | |
parent | b23530ebc339c4092ae2c9f37341a5398fea8b89 (diff) |
driver core: create a private portion of struct device
This is to be used to move things out of struct device that no code
outside of the driver core should ever touch.
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index c56b154a0bf4..4cf063fea2a9 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -28,6 +28,7 @@ | |||
28 | #define BUS_ID_SIZE 20 | 28 | #define BUS_ID_SIZE 20 |
29 | 29 | ||
30 | struct device; | 30 | struct device; |
31 | struct device_private; | ||
31 | struct device_driver; | 32 | struct device_driver; |
32 | struct driver_private; | 33 | struct driver_private; |
33 | struct class; | 34 | struct class; |
@@ -373,6 +374,8 @@ struct device { | |||
373 | struct klist_node knode_bus; | 374 | struct klist_node knode_bus; |
374 | struct device *parent; | 375 | struct device *parent; |
375 | 376 | ||
377 | struct device_private *p; | ||
378 | |||
376 | struct kobject kobj; | 379 | struct kobject kobj; |
377 | unsigned uevent_suppress:1; | 380 | unsigned uevent_suppress:1; |
378 | const char *init_name; /* initial name of the device */ | 381 | const char *init_name; /* initial name of the device */ |