diff options
| author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-12 18:49:37 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-12 18:49:37 -0400 |
| commit | efefc6eb38d43b8e5daef482f575d767b002004e (patch) | |
| tree | 8a3933db1f8721f9bcc9912c800dc8406f4bdf94 /include/linux/device.h | |
| parent | 117494a1b65183f0e3fcc817b07944bc5c465050 (diff) | |
| parent | cd59abfcc441b2abb4cf2cd62c1eb0f02a60e8dd (diff) | |
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6: (75 commits)
PM: merge device power-management source files
sysfs: add copyrights
kobject: update the copyrights
kset: add some kerneldoc to help describe what these strange things are
Driver core: rename ktype_edd and ktype_efivar
Driver core: rename ktype_driver
Driver core: rename ktype_device
Driver core: rename ktype_class
driver core: remove subsystem_init()
sysfs: move sysfs file poll implementation to sysfs_open_dirent
sysfs: implement sysfs_open_dirent
sysfs: move sysfs_dirent->s_children into sysfs_dirent->s_dir
sysfs: make sysfs_root a regular directory dirent
sysfs: open code sysfs_attach_dentry()
sysfs: make s_elem an anonymous union
sysfs: make bin attr open get active reference of parent too
sysfs: kill unnecessary NULL pointer check in sysfs_release()
sysfs: kill unnecessary sysfs_get() in open paths
sysfs: reposition sysfs_dirent->s_mode.
sysfs: kill sysfs_update_file()
...
Diffstat (limited to 'include/linux/device.h')
| -rw-r--r-- | include/linux/device.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 3a38d1f70cb7..2e15822fe409 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
| @@ -64,12 +64,9 @@ struct bus_type { | |||
| 64 | struct bus_attribute * bus_attrs; | 64 | struct bus_attribute * bus_attrs; |
| 65 | struct device_attribute * dev_attrs; | 65 | struct device_attribute * dev_attrs; |
| 66 | struct driver_attribute * drv_attrs; | 66 | struct driver_attribute * drv_attrs; |
| 67 | struct bus_attribute drivers_autoprobe_attr; | ||
| 68 | struct bus_attribute drivers_probe_attr; | ||
| 69 | 67 | ||
| 70 | int (*match)(struct device * dev, struct device_driver * drv); | 68 | int (*match)(struct device * dev, struct device_driver * drv); |
| 71 | int (*uevent)(struct device *dev, char **envp, | 69 | int (*uevent)(struct device *dev, struct kobj_uevent_env *env); |
| 72 | int num_envp, char *buffer, int buffer_size); | ||
| 73 | int (*probe)(struct device * dev); | 70 | int (*probe)(struct device * dev); |
| 74 | int (*remove)(struct device * dev); | 71 | int (*remove)(struct device * dev); |
| 75 | void (*shutdown)(struct device * dev); | 72 | void (*shutdown)(struct device * dev); |
| @@ -189,10 +186,8 @@ struct class { | |||
| 189 | struct class_device_attribute * class_dev_attrs; | 186 | struct class_device_attribute * class_dev_attrs; |
| 190 | struct device_attribute * dev_attrs; | 187 | struct device_attribute * dev_attrs; |
| 191 | 188 | ||
| 192 | int (*uevent)(struct class_device *dev, char **envp, | 189 | int (*uevent)(struct class_device *dev, struct kobj_uevent_env *env); |
| 193 | int num_envp, char *buffer, int buffer_size); | 190 | int (*dev_uevent)(struct device *dev, struct kobj_uevent_env *env); |
| 194 | int (*dev_uevent)(struct device *dev, char **envp, int num_envp, | ||
| 195 | char *buffer, int buffer_size); | ||
| 196 | 191 | ||
| 197 | void (*release)(struct class_device *dev); | 192 | void (*release)(struct class_device *dev); |
| 198 | void (*class_release)(struct class *class); | 193 | void (*class_release)(struct class *class); |
| @@ -268,8 +263,7 @@ struct class_device { | |||
| 268 | struct attribute_group ** groups; /* optional groups */ | 263 | struct attribute_group ** groups; /* optional groups */ |
| 269 | 264 | ||
| 270 | void (*release)(struct class_device *dev); | 265 | void (*release)(struct class_device *dev); |
| 271 | int (*uevent)(struct class_device *dev, char **envp, | 266 | int (*uevent)(struct class_device *dev, struct kobj_uevent_env *env); |
| 272 | int num_envp, char *buffer, int buffer_size); | ||
| 273 | char class_id[BUS_ID_SIZE]; /* unique to this class */ | 267 | char class_id[BUS_ID_SIZE]; /* unique to this class */ |
| 274 | }; | 268 | }; |
| 275 | 269 | ||
| @@ -337,8 +331,7 @@ extern void class_device_destroy(struct class *cls, dev_t devt); | |||
| 337 | struct device_type { | 331 | struct device_type { |
| 338 | const char *name; | 332 | const char *name; |
| 339 | struct attribute_group **groups; | 333 | struct attribute_group **groups; |
| 340 | int (*uevent)(struct device *dev, char **envp, int num_envp, | 334 | int (*uevent)(struct device *dev, struct kobj_uevent_env *env); |
| 341 | char *buffer, int buffer_size); | ||
| 342 | void (*release)(struct device *dev); | 335 | void (*release)(struct device *dev); |
| 343 | int (*suspend)(struct device * dev, pm_message_t state); | 336 | int (*suspend)(struct device * dev, pm_message_t state); |
| 344 | int (*resume)(struct device * dev); | 337 | int (*resume)(struct device * dev); |
