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>
This commit is contained in:
Greg Kroah-Hartman
2008-12-16 12:23:36 -08:00
parent b23530ebc3
commit fb069a5d13
3 changed files with 24 additions and 0 deletions

View File

@ -28,6 +28,7 @@
#define BUS_ID_SIZE 20
struct device;
struct device_private;
struct device_driver;
struct driver_private;
struct class;
@ -373,6 +374,8 @@ struct device {
struct klist_node knode_bus;
struct device *parent;
struct device_private *p;
struct kobject kobj;
unsigned uevent_suppress:1;
const char *init_name; /* initial name of the device */