From cfe3a663af0dc133b8f9a1652d0820160889d6ea Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 21 Apr 2005 19:04:53 +0000 Subject: Tweaked API to minimise changes to existing drivers even further. --- src/include/dev.h | 2 +- src/include/pci.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/dev.h b/src/include/dev.h index 4f114496e..83b7f827f 100644 --- a/src/include/dev.h +++ b/src/include/dev.h @@ -154,7 +154,7 @@ struct bus_driver { int ( *check_driver ) ( struct bus_dev *bus_dev, struct device_driver *device_driver ); char * ( *describe ) ( struct bus_dev *bus_dev ); - char * ( *name ) ( struct bus_dev *bus_dev ); + const char * ( *name ) ( struct bus_dev *bus_dev ); }; #define __bus_driver __attribute__ (( used, __section__ ( ".drivers.bus" ) )) diff --git a/src/include/pci.h b/src/include/pci.h index 49e36d506..677e09a64 100644 --- a/src/include/pci.h +++ b/src/include/pci.h @@ -296,7 +296,7 @@ struct pci_id { * can handle an entire class of devices. * */ -struct pci_driver_info { +struct pci_driver { struct pci_id *ids; unsigned int id_count; uint16_t class; -- cgit v1.2.3-55-g7522