aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 17cbc6db67b4..58df18d9cd3e 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -47,8 +47,11 @@ 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 (*probe)(struct device * dev);
53 int (*remove)(struct device * dev);
54 void (*shutdown)(struct device * dev);
52 int (*suspend)(struct device * dev, pm_message_t state); 55 int (*suspend)(struct device * dev, pm_message_t state);
53 int (*resume)(struct device * dev); 56 int (*resume)(struct device * dev);
54}; 57};
@@ -151,7 +154,7 @@ struct class {
151 struct class_attribute * class_attrs; 154 struct class_attribute * class_attrs;
152 struct class_device_attribute * class_dev_attrs; 155 struct class_device_attribute * class_dev_attrs;
153 156
154 int (*hotplug)(struct class_device *dev, char **envp, 157 int (*uevent)(struct class_device *dev, char **envp,
155 int num_envp, char *buffer, int buffer_size); 158 int num_envp, char *buffer, int buffer_size);
156 159
157 void (*release)(struct class_device *dev); 160 void (*release)(struct class_device *dev);
@@ -209,9 +212,9 @@ extern int class_device_create_file(struct class_device *,
209 * set, this will be called instead of the class specific release function. 212 * 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 213 * Only use this if you want to override the default release function, like
211 * when you are nesting class_device structures. 214 * when you are nesting class_device structures.
212 * @hotplug: pointer to a hotplug function for this struct class_device. If 215 * @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. 216 * 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 217 * Only use this if you want to override the default uevent function, like
215 * when you are nesting class_device structures. 218 * when you are nesting class_device structures.
216 */ 219 */
217struct class_device { 220struct class_device {
@@ -227,7 +230,7 @@ struct class_device {
227 struct class_device *parent; /* parent of this child device, if there is one */ 230 struct class_device *parent; /* parent of this child device, if there is one */
228 231
229 void (*release)(struct class_device *dev); 232 void (*release)(struct class_device *dev);
230 int (*hotplug)(struct class_device *dev, char **envp, 233 int (*uevent)(struct class_device *dev, char **envp,
231 int num_envp, char *buffer, int buffer_size); 234 int num_envp, char *buffer, int buffer_size);
232 char class_id[BUS_ID_SIZE]; /* unique to this class */ 235 char class_id[BUS_ID_SIZE]; /* unique to this class */
233}; 236};