Added "name" field to struct bus_driver

pull/1/head
Michael Brown 2005-04-25 19:26:33 +00:00
parent d281996ef8
commit 99b857559b
1 changed files with 8 additions and 7 deletions

View File

@ -291,7 +291,7 @@ static int t509_check_driver ( struct bus_dev *bus_dev __unused,
* Describe a T509 device * Describe a T509 device
* *
*/ */
static char * t509_describe ( struct bus_dev *bus_dev ) { static char * t509_describe_device ( struct bus_dev *bus_dev ) {
struct t509_device *t509 = ( struct t509_device * ) bus_dev; struct t509_device *t509 = ( struct t509_device * ) bus_dev;
static char t509_description[] = "T509 00"; static char t509_description[] = "T509 00";
@ -303,7 +303,7 @@ static char * t509_describe ( struct bus_dev *bus_dev ) {
* Name a T509 device * Name a T509 device
* *
*/ */
static const char * t509_name ( struct bus_dev *bus_dev __unused ) { static const char * t509_name_device ( struct bus_dev *bus_dev __unused ) {
return "T509"; return "T509";
} }
@ -312,11 +312,12 @@ static const char * t509_name ( struct bus_dev *bus_dev __unused ) {
* *
*/ */
static struct bus_driver t509_driver __bus_driver = { static struct bus_driver t509_driver __bus_driver = {
.next_location = t509_next_location, .name = "T509",
.fill_device = t509_fill_device, .next_location = t509_next_location,
.check_driver = t509_check_driver, .fill_device = t509_fill_device,
.describe = t509_describe, .check_driver = t509_check_driver,
.name = t509_name, .describe_device = t509_describe_device,
.name_device = t509_name_device,
}; };
/* /*