aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sysdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sysdev.h')
-rw-r--r--include/linux/sysdev.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/include/linux/sysdev.h b/include/linux/sysdev.h
index 1154c29f4101..d35e783a598c 100644
--- a/include/linux/sysdev.h
+++ b/include/linux/sysdev.h
@@ -7,13 +7,13 @@
7 * We still have a notion of a driver for a system device, because we still 7 * We still have a notion of a driver for a system device, because we still
8 * want to perform basic operations on these devices. 8 * want to perform basic operations on these devices.
9 * 9 *
10 * We also support auxillary drivers binding to devices of a certain class. 10 * We also support auxiliary drivers binding to devices of a certain class.
11 * 11 *
12 * This allows configurable drivers to register themselves for devices of 12 * This allows configurable drivers to register themselves for devices of
13 * a certain type. And, it allows class definitions to reside in generic 13 * a certain type. And, it allows class definitions to reside in generic
14 * code while arch-specific code can register specific drivers. 14 * code while arch-specific code can register specific drivers.
15 * 15 *
16 * Auxillary drivers registered with a NULL cls are registered as drivers 16 * Auxiliary drivers registered with a NULL cls are registered as drivers
17 * for all system devices, and get notification calls for each device. 17 * for all system devices, and get notification calls for each device.
18 */ 18 */
19 19
@@ -33,11 +33,6 @@ struct sysdev_class {
33 const char *name; 33 const char *name;
34 struct list_head drivers; 34 struct list_head drivers;
35 struct sysdev_class_attribute **attrs; 35 struct sysdev_class_attribute **attrs;
36
37 /* Default operations for these types of devices */
38 int (*shutdown)(struct sys_device *);
39 int (*suspend)(struct sys_device *, pm_message_t state);
40 int (*resume)(struct sys_device *);
41 struct kset kset; 36 struct kset kset;
42}; 37};
43 38
@@ -69,16 +64,13 @@ extern int sysdev_class_create_file(struct sysdev_class *,
69extern void sysdev_class_remove_file(struct sysdev_class *, 64extern void sysdev_class_remove_file(struct sysdev_class *,
70 struct sysdev_class_attribute *); 65 struct sysdev_class_attribute *);
71/** 66/**
72 * Auxillary system device drivers. 67 * Auxiliary system device drivers.
73 */ 68 */
74 69
75struct sysdev_driver { 70struct sysdev_driver {
76 struct list_head entry; 71 struct list_head entry;
77 int (*add)(struct sys_device *); 72 int (*add)(struct sys_device *);
78 int (*remove)(struct sys_device *); 73 int (*remove)(struct sys_device *);
79 int (*shutdown)(struct sys_device *);
80 int (*suspend)(struct sys_device *, pm_message_t state);
81 int (*resume)(struct sys_device *);
82}; 74};
83 75
84 76