diff options
| author | Linus Torvalds <torvalds@home.transmeta.com> | 2002-02-13 05:38:52 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-02-13 05:38:52 -0800 |
| commit | d7a325771fa1ff8c7fad25cf0b602b82f171ec45 (patch) | |
| tree | fbe31e4c8d0aa9fa09f9a60429da499413164a01 /include | |
| parent | 306fb938e7aa171828bb758df03f7cd2dd99598e (diff) | |
| parent | da5550b2060936632df4a4cf14627c225f0fd1f8 (diff) | |
Merge master.kernel.org:/home/mochel/BK/linux-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/device.h | 24 | ||||
| -rw-r--r-- | include/linux/driverfs_fs.h | 1 |
2 files changed, 2 insertions, 23 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 1e4ad15085b8..f8234fdff19f 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -54,14 +54,13 @@ enum { }; struct device; -struct iobus; struct device_driver { int (*probe) (struct device * dev); int (*remove) (struct device * dev, u32 flags); - int (*suspend) (struct device * dev, u32 state, u32 stage); - int (*resume) (struct device * dev, u32 stage); + int (*suspend) (struct device * dev, u32 state, u32 level); + int (*resume) (struct device * dev, u32 level); }; struct device { @@ -94,23 +93,6 @@ struct device { unsigned char *saved_state; /* saved device state */ }; -/* - * struct bus_type - descriptor for a type of bus - * There are some instances when you need to know what type of bus a - * device is on. Instead of having some sort of enumerated integer type, - * each struct iobus will have a pointer to a struct bus_type that gives - * actually meaningful data. - * There should be one struct bus_type for each type of bus (one for PCI, - * one for USB, etc). - */ -struct iobus_driver { - char name[16]; /* ascii descriptor of type of bus */ - struct list_head node; /* node in global list of bus drivers */ - - int (*scan) (struct iobus*); - int (*add_device) (struct iobus*, char*); -}; - static inline struct device * list_to_dev(struct list_head *node) { @@ -122,8 +104,6 @@ list_to_dev(struct list_head *node) */ extern int device_register(struct device * dev); -extern int iobus_register(struct iobus * iobus); - extern int device_create_file(struct device *device, struct driver_file_entry * entry); extern void device_remove_file(struct device * dev, const char * name); diff --git a/include/linux/driverfs_fs.h b/include/linux/driverfs_fs.h index 8141302ef67d..48a773dcfb9a 100644 --- a/include/linux/driverfs_fs.h +++ b/include/linux/driverfs_fs.h @@ -41,7 +41,6 @@ struct driver_file_entry { char * name; mode_t mode; struct dentry * dentry; - void * data; ssize_t (*show)(struct device * dev, char * buf, size_t count, loff_t off); ssize_t (*store)(struct device * dev, const char * buf, size_t count, loff_t off); |
