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

wusbcore: rh: 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
22299d13 d9aab404

+1 -1
+1 -1
drivers/usb/wusbcore/rh.c
··· 182 182 if (wLength < length) 183 183 return -ENOSPC; 184 184 descr->bDescLength = 7 + 2 * temp; 185 - descr->bDescriptorType = 0x29; /* HUB type */ 185 + descr->bDescriptorType = USB_DT_HUB; /* HUB type */ 186 186 descr->bNbrPorts = wusbhc->ports_max; 187 187 descr->wHubCharacteristics = cpu_to_le16( 188 188 HUB_CHAR_COMMON_LPSM /* All ports power at once */