forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commitc9d5033
USB: Make it possible to "subclass" usb_device_driver
The kernel currenly has only 2 usb_device_drivers, one generic one, onethat completely replaces the generic one to make USB devices usable overa network.Use the newly exported generic driver functions when a driver declaresto want them run, in addition to its own code. This makes it possible towrite drivers that extend the generic USB driver.Note that this patch is not enough for another driver to automaticallyget selected.Signed-off-by: Bastien Nocera <hadess@hadess.net>Acked-by: Alan Stern <stern@rowland.harvard.edu>Link:https://lore.kernel.org/r/20191016093933.693-3-hadess@hadess.netSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parentef0f7d1 commitc9d5033
2 files changed
+25
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| 264 | + | |
| 265 | + | |
264 | 266 | | |
265 | | - | |
266 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
267 | 274 | | |
268 | 275 | | |
269 | 276 | | |
| |||
273 | 280 | | |
274 | 281 | | |
275 | 282 | | |
276 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
277 | 287 | | |
278 | 288 | | |
279 | 289 | | |
| |||
1149 | 1159 | | |
1150 | 1160 | | |
1151 | 1161 | | |
1152 | | - | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
1153 | 1166 | | |
1154 | 1167 | | |
1155 | 1168 | | |
| |||
1181 | 1194 | | |
1182 | 1195 | | |
1183 | 1196 | | |
1184 | | - | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
1185 | 1201 | | |
1186 | 1202 | | |
1187 | 1203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1228 | 1228 | | |
1229 | 1229 | | |
1230 | 1230 | | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
1231 | 1234 | | |
1232 | 1235 | | |
1233 | 1236 | | |
| |||
1242 | 1245 | | |
1243 | 1246 | | |
1244 | 1247 | | |
| 1248 | + | |
1245 | 1249 | | |
1246 | 1250 | | |
1247 | 1251 | | |
| |||
0 commit comments
Comments
(0)