Browse Source

Added "name" field to struct bus_driver

tags/v0.9.3
Michael Brown 20 years ago
parent
commit
99b857559b
1 changed files with 8 additions and 7 deletions
  1. 8
    7
      src/drivers/net/3c509.c

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

291
  * Describe a T509 device
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
 	struct t509_device *t509 = ( struct t509_device * ) bus_dev;
295
 	struct t509_device *t509 = ( struct t509_device * ) bus_dev;
296
 	static char t509_description[] = "T509 00";
296
 	static char t509_description[] = "T509 00";
297
 
297
 
303
  * Name a T509 device
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
 	return "T509";
307
 	return "T509";
308
 }
308
 }
309
 
309
 
312
  *
312
  *
313
  */
313
  */
314
 static struct bus_driver t509_driver __bus_driver = {
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…
Cancel
Save