Sfoglia il codice sorgente

Added "name" field to struct bus_driver

tags/v0.9.3
Michael Brown 19 anni fa
parent
commit
99b857559b
1 ha cambiato i file con 8 aggiunte e 7 eliminazioni
  1. 8
    7
      src/drivers/net/3c509.c

+ 8
- 7
src/drivers/net/3c509.c Vedi File

@@ -291,7 +291,7 @@ static int t509_check_driver ( struct bus_dev *bus_dev __unused,
291 291
  * Describe a T509 device
292 292
  *
293 293
  */
294
-static char * t509_describe ( struct bus_dev *bus_dev ) {
294
+static char * t509_describe_device ( struct bus_dev *bus_dev ) {
295 295
 	struct t509_device *t509 = ( struct t509_device * ) bus_dev;
296 296
 	static char t509_description[] = "T509 00";
297 297
 
@@ -303,7 +303,7 @@ static char * t509_describe ( struct bus_dev *bus_dev ) {
303 303
  * Name a T509 device
304 304
  *
305 305
  */
306
-static const char * t509_name ( struct bus_dev *bus_dev __unused ) {
306
+static const char * t509_name_device ( struct bus_dev *bus_dev __unused ) {
307 307
 	return "T509";
308 308
 }
309 309
 
@@ -312,11 +312,12 @@ static const char * t509_name ( struct bus_dev *bus_dev __unused ) {
312 312
  *
313 313
  */
314 314
 static struct bus_driver t509_driver __bus_driver = {
315
-	.next_location	= t509_next_location,
316
-	.fill_device	= t509_fill_device,
317
-	.check_driver	= t509_check_driver,
318
-	.describe	= t509_describe,
319
-	.name		= t509_name,
315
+	.name			= "T509",
316
+	.next_location		= t509_next_location,
317
+	.fill_device		= t509_fill_device,
318
+	.check_driver		= t509_check_driver,
319
+	.describe_device	= t509_describe_device,
320
+	.name_device		= t509_name_device,
320 321
 };
321 322
 
322 323
 /*

Loading…
Annulla
Salva