libpayload: Fix some missing-prototype warnings

usb_controller_initialize() is not declared in any header file nor
called from outside of usbinit.c, so make it static.

set_configuration() looks like beeing non-static on purpose (like the
other helpers around it in usb.c), so put a prototype into usb.h.

Change-Id: I08d93b3769d8398bb43462d9afdfeec81fef93ec
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: http://review.coreboot.org/1894
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
Nico Huber 2012-11-23 11:34:20 +01:00 committed by Patrick Georgi
parent 7a32e88f12
commit ba22e4c3fd
2 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,7 @@
* @param dev PCI device id at bus * @param dev PCI device id at bus
* @param func function id of the controller * @param func function id of the controller
*/ */
int usb_controller_initialize(int bus, int dev, int func) static int usb_controller_initialize(int bus, int dev, int func)
{ {
u32 class; u32 class;
u32 devclass; u32 devclass;

View File

@ -230,6 +230,7 @@ void init_device_entry (hci_t *controller, int num);
void set_feature (usbdev_t *dev, int endp, int feature, int rtype); void set_feature (usbdev_t *dev, int endp, int feature, int rtype);
void get_status (usbdev_t *dev, int endp, int rtype, int len, void *data); void get_status (usbdev_t *dev, int endp, int rtype, int len, void *data);
void set_configuration (usbdev_t *dev);
int clear_feature (usbdev_t *dev, int endp, int feature, int rtype); int clear_feature (usbdev_t *dev, int endp, int feature, int rtype);
int clear_stall (endpoint_t *ep); int clear_stall (endpoint_t *ep);