Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fhci-hub: use USB_DT_HUB

Fix using the bare number to set the 'bDescriptorType' field of the Hub
Descriptor while the value is #define'd in <linux/usb/ch11.h>.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Sergei Shtylyov and committed by
Greg Kroah-Hartman
51a114bc 4631f4e9

+1 -1
+1 -1
drivers/usb/host/fhci-hub.c
··· 30 30 /* virtual root hub specific descriptor */ 31 31 static u8 root_hub_des[] = { 32 32 0x09, /* blength */ 33 - 0x29, /* bDescriptorType;hub-descriptor */ 33 + USB_DT_HUB, /* bDescriptorType;hub-descriptor */ 34 34 0x01, /* bNbrPorts */ 35 35 HUB_CHAR_INDV_PORT_LPSM | HUB_CHAR_NO_OCPM, /* wHubCharacteristics */ 36 36 0x00, /* per-port power, no overcurrent */