[OpenBIOS] [PATCH] drivers/usb: Fix compiling with USB debugging enabled
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Sat Oct 22 10:46:16 CEST 2016
On 17/10/16 22:16, BALATON Zoltan wrote:
> Signed-off-by: BALATON Zoltan <balaton at eik.bme.hu>
> ---
> drivers/usb.c | 2 +-
> drivers/usbhid.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/usb.c b/drivers/usb.c
> index c6e3717..88b7580 100644
> --- a/drivers/usb.c
> +++ b/drivers/usb.c
> @@ -555,7 +555,7 @@ usb_detach_device(hci_t *controller, int devno)
> int
> usb_attach_device(hci_t *controller, int hubaddress, int port, int speed)
> {
> -#ifdef CONFIG_USB_DEBUG
> +#ifdef CONFIG_DEBUG_USB
> static const char* speeds[] = { "full", "low", "high" };
> usb_debug ("%sspeed device\n", (speed <= 2) ? speeds[speed] : "invalid value - no");
> #endif
> diff --git a/drivers/usbhid.c b/drivers/usbhid.c
> index a423278..dcd4ce6 100644
> --- a/drivers/usbhid.c
> +++ b/drivers/usbhid.c
> @@ -60,7 +60,7 @@ NODE_METHODS( usb_kbd ) = {
> { "read", keyboard_read },
> };
>
> -#ifdef CONFIG_USB_DEBUG
> +#ifdef CONFIG_DEBUG_USB
> static const char *boot_protos[3] = { "(none)", "keyboard", "mouse" };
> #endif
> typedef enum { hid_proto_boot = 0, hid_proto_report = 1 } hid_proto;
Looks good to me - thanks for this, I've applied it to master.
ATB,
Mark.
More information about the OpenBIOS
mailing list