diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/dvb/video.h | 1 | ||||
-rw-r--r-- | include/linux/kobject.h | 26 | ||||
-rw-r--r-- | include/linux/usb.h | 2 |
3 files changed, 17 insertions, 12 deletions
diff --git a/include/linux/dvb/video.h b/include/linux/dvb/video.h index 93e4c3a6d190..50839fe9e39e 100644 --- a/include/linux/dvb/video.h +++ b/include/linux/dvb/video.h | |||
@@ -29,6 +29,7 @@ | |||
29 | #ifdef __KERNEL__ | 29 | #ifdef __KERNEL__ |
30 | #include <linux/types.h> | 30 | #include <linux/types.h> |
31 | #else | 31 | #else |
32 | #include <asm/types.h> | ||
32 | #include <stdint.h> | 33 | #include <stdint.h> |
33 | #include <time.h> | 34 | #include <time.h> |
34 | #endif | 35 | #endif |
diff --git a/include/linux/kobject.h b/include/linux/kobject.h index aa2fe22b1baa..949706c33622 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h | |||
@@ -56,6 +56,9 @@ enum kobject_action { | |||
56 | KOBJ_MAX | 56 | KOBJ_MAX |
57 | }; | 57 | }; |
58 | 58 | ||
59 | /* The list of strings defining the valid kobject actions as specified above */ | ||
60 | extern const char *kobject_actions[]; | ||
61 | |||
59 | struct kobject { | 62 | struct kobject { |
60 | const char * k_name; | 63 | const char * k_name; |
61 | char name[KOBJ_NAME_LEN]; | 64 | char name[KOBJ_NAME_LEN]; |
@@ -108,9 +111,15 @@ struct kobj_type { | |||
108 | struct attribute ** default_attrs; | 111 | struct attribute ** default_attrs; |
109 | }; | 112 | }; |
110 | 113 | ||
114 | struct kset_uevent_ops { | ||
115 | int (*filter)(struct kset *kset, struct kobject *kobj); | ||
116 | const char *(*name)(struct kset *kset, struct kobject *kobj); | ||
117 | int (*uevent)(struct kset *kset, struct kobject *kobj, char **envp, | ||
118 | int num_envp, char *buffer, int buffer_size); | ||
119 | }; | ||
111 | 120 | ||
112 | /** | 121 | /* |
113 | * kset - a set of kobjects of a specific type, belonging | 122 | * struct kset - a set of kobjects of a specific type, belonging |
114 | * to a specific subsystem. | 123 | * to a specific subsystem. |
115 | * | 124 | * |
116 | * All kobjects of a kset should be embedded in an identical | 125 | * All kobjects of a kset should be embedded in an identical |
@@ -126,13 +135,6 @@ struct kobj_type { | |||
126 | * supress the event generation or add subsystem specific | 135 | * supress the event generation or add subsystem specific |
127 | * variables carried with the event. | 136 | * variables carried with the event. |
128 | */ | 137 | */ |
129 | struct kset_uevent_ops { | ||
130 | int (*filter)(struct kset *kset, struct kobject *kobj); | ||
131 | const char *(*name)(struct kset *kset, struct kobject *kobj); | ||
132 | int (*uevent)(struct kset *kset, struct kobject *kobj, char **envp, | ||
133 | int num_envp, char *buffer, int buffer_size); | ||
134 | }; | ||
135 | |||
136 | struct kset { | 138 | struct kset { |
137 | struct kobj_type * ktype; | 139 | struct kobj_type * ktype; |
138 | struct list_head list; | 140 | struct list_head list; |
@@ -173,7 +175,7 @@ static inline struct kobj_type * get_ktype(struct kobject * k) | |||
173 | extern struct kobject * kset_find_obj(struct kset *, const char *); | 175 | extern struct kobject * kset_find_obj(struct kset *, const char *); |
174 | 176 | ||
175 | 177 | ||
176 | /** | 178 | /* |
177 | * Use this when initializing an embedded kset with no other | 179 | * Use this when initializing an embedded kset with no other |
178 | * fields to initialize. | 180 | * fields to initialize. |
179 | */ | 181 | */ |
@@ -198,7 +200,7 @@ extern struct kset kernel_subsys; | |||
198 | /* The global /sys/hypervisor/ subsystem */ | 200 | /* The global /sys/hypervisor/ subsystem */ |
199 | extern struct kset hypervisor_subsys; | 201 | extern struct kset hypervisor_subsys; |
200 | 202 | ||
201 | /** | 203 | /* |
202 | * Helpers for setting the kset of registered objects. | 204 | * Helpers for setting the kset of registered objects. |
203 | * Often, a registered object belongs to a kset embedded in a | 205 | * Often, a registered object belongs to a kset embedded in a |
204 | * subsystem. These do no magic, just make the resulting code | 206 | * subsystem. These do no magic, just make the resulting code |
@@ -233,7 +235,7 @@ extern struct kset hypervisor_subsys; | |||
233 | /** | 235 | /** |
234 | * subsys_set_kset(obj,subsys) - set kset for subsystem | 236 | * subsys_set_kset(obj,subsys) - set kset for subsystem |
235 | * @obj: ptr to some object type. | 237 | * @obj: ptr to some object type. |
236 | * @subsys: a subsystem object (not a ptr). | 238 | * @_subsys: a subsystem object (not a ptr). |
237 | * | 239 | * |
238 | * Can be used for any object type with an embedded ->subsys. | 240 | * Can be used for any object type with an embedded ->subsys. |
239 | * Sets the kset of @obj's kobject to @subsys.kset. This makes | 241 | * Sets the kset of @obj's kobject to @subsys.kset. This makes |
diff --git a/include/linux/usb.h b/include/linux/usb.h index 7a60946df3b6..4f33a58fa9d1 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h | |||
@@ -94,6 +94,7 @@ enum usb_interface_condition { | |||
94 | * endpoint configurations. They will be in no particular order. | 94 | * endpoint configurations. They will be in no particular order. |
95 | * @num_altsetting: number of altsettings defined. | 95 | * @num_altsetting: number of altsettings defined. |
96 | * @cur_altsetting: the current altsetting. | 96 | * @cur_altsetting: the current altsetting. |
97 | * @intf_assoc: interface association descriptor | ||
97 | * @driver: the USB driver that is bound to this interface. | 98 | * @driver: the USB driver that is bound to this interface. |
98 | * @minor: the minor number assigned to this interface, if this | 99 | * @minor: the minor number assigned to this interface, if this |
99 | * interface is bound to a driver that uses the USB major number. | 100 | * interface is bound to a driver that uses the USB major number. |
@@ -213,6 +214,7 @@ struct usb_interface_cache { | |||
213 | * @desc: the device's configuration descriptor. | 214 | * @desc: the device's configuration descriptor. |
214 | * @string: pointer to the cached version of the iConfiguration string, if | 215 | * @string: pointer to the cached version of the iConfiguration string, if |
215 | * present for this configuration. | 216 | * present for this configuration. |
217 | * @intf_assoc: list of any interface association descriptors in this config | ||
216 | * @interface: array of pointers to usb_interface structures, one for each | 218 | * @interface: array of pointers to usb_interface structures, one for each |
217 | * interface in the configuration. The number of interfaces is stored | 219 | * interface in the configuration. The number of interfaces is stored |
218 | * in desc.bNumInterfaces. These pointers are valid only while the | 220 | * in desc.bNumInterfaces. These pointers are valid only while the |