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

fotg210-hcd: 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
4631f4e9 87327b14

+1 -1
+1 -1
drivers/usb/host/fotg210-hcd.c
··· 1509 1509 int ports = HCS_N_PORTS(fotg210->hcs_params); 1510 1510 u16 temp; 1511 1511 1512 - desc->bDescriptorType = 0x29; 1512 + desc->bDescriptorType = USB_DT_HUB; 1513 1513 desc->bPwrOn2PwrGood = 10; /* fotg210 1.0, 2.3.9 says 20ms max */ 1514 1514 desc->bHubContrCurrent = 0; 1515 1515