diff options
| author | Steve French <sfrench@us.ibm.com> | 2006-01-12 17:47:08 -0500 |
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2006-01-12 17:47:08 -0500 |
| commit | 94bc2be31a01a3055ec94176e595dfe208e92d3b (patch) | |
| tree | ebfbe81c6718a6390bfa1b99c6d228237d818576 /include/linux/device.h | |
| parent | c32a0b689cb9cc160cfcd19735bbf50bb70c6ef4 (diff) | |
| parent | 58cba4650a7a414eabd2b40cc9d8e45fcdf192d9 (diff) | |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'include/linux/device.h')
| -rw-r--r-- | include/linux/device.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 17cbc6db67b4..0cdee78e5ce1 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
| @@ -47,8 +47,8 @@ struct bus_type { | |||
| 47 | struct driver_attribute * drv_attrs; | 47 | struct driver_attribute * drv_attrs; |
| 48 | 48 | ||
| 49 | int (*match)(struct device * dev, struct device_driver * drv); | 49 | int (*match)(struct device * dev, struct device_driver * drv); |
| 50 | int (*hotplug) (struct device *dev, char **envp, | 50 | int (*uevent)(struct device *dev, char **envp, |
| 51 | int num_envp, char *buffer, int buffer_size); | 51 | int num_envp, char *buffer, int buffer_size); |
| 52 | int (*suspend)(struct device * dev, pm_message_t state); | 52 | int (*suspend)(struct device * dev, pm_message_t state); |
| 53 | int (*resume)(struct device * dev); | 53 | int (*resume)(struct device * dev); |
| 54 | }; | 54 | }; |
| @@ -151,7 +151,7 @@ struct class { | |||
| 151 | struct class_attribute * class_attrs; | 151 | struct class_attribute * class_attrs; |
| 152 | struct class_device_attribute * class_dev_attrs; | 152 | struct class_device_attribute * class_dev_attrs; |
| 153 | 153 | ||
| 154 | int (*hotplug)(struct class_device *dev, char **envp, | 154 | int (*uevent)(struct class_device *dev, char **envp, |
| 155 | int num_envp, char *buffer, int buffer_size); | 155 | int num_envp, char *buffer, int buffer_size); |
| 156 | 156 | ||
| 157 | void (*release)(struct class_device *dev); | 157 | void (*release)(struct class_device *dev); |
| @@ -209,9 +209,9 @@ extern int class_device_create_file(struct class_device *, | |||
| 209 | * set, this will be called instead of the class specific release function. | 209 | * set, this will be called instead of the class specific release function. |
| 210 | * Only use this if you want to override the default release function, like | 210 | * Only use this if you want to override the default release function, like |
| 211 | * when you are nesting class_device structures. | 211 | * when you are nesting class_device structures. |
| 212 | * @hotplug: pointer to a hotplug function for this struct class_device. If | 212 | * @uevent: pointer to a uevent function for this struct class_device. If |
| 213 | * set, this will be called instead of the class specific hotplug function. | 213 | * set, this will be called instead of the class specific uevent function. |
| 214 | * Only use this if you want to override the default hotplug function, like | 214 | * Only use this if you want to override the default uevent function, like |
| 215 | * when you are nesting class_device structures. | 215 | * when you are nesting class_device structures. |
| 216 | */ | 216 | */ |
| 217 | struct class_device { | 217 | struct class_device { |
| @@ -227,7 +227,7 @@ struct class_device { | |||
| 227 | struct class_device *parent; /* parent of this child device, if there is one */ | 227 | struct class_device *parent; /* parent of this child device, if there is one */ |
| 228 | 228 | ||
| 229 | void (*release)(struct class_device *dev); | 229 | void (*release)(struct class_device *dev); |
| 230 | int (*hotplug)(struct class_device *dev, char **envp, | 230 | int (*uevent)(struct class_device *dev, char **envp, |
| 231 | int num_envp, char *buffer, int buffer_size); | 231 | int num_envp, char *buffer, int buffer_size); |
| 232 | char class_id[BUS_ID_SIZE]; /* unique to this class */ | 232 | char class_id[BUS_ID_SIZE]; /* unique to this class */ |
| 233 | }; | 233 | }; |
