aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2008-12-16 15:23:36 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-03-24 19:38:25 -0400
commitfb069a5d132fb926ed17af3211a114ac7cf27d7a (patch)
treec104d9df7c83c27e3785265fb7412fd9332bc10a /include
parentb23530ebc339c4092ae2c9f37341a5398fea8b89 (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')
-rw-r--r--include/linux/device.h3
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
30struct device; 30struct device;
31struct device_private;
31struct device_driver; 32struct device_driver;
32struct driver_private; 33struct driver_private;
33struct class; 34struct 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 */