mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-13 08:39:52 +00:00
wusbcore: rh: use HUB_CHAR_*
Fix using the bare numbers to set the 'wHubCharacteristics' field of the Hub Descriptor while the values are #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>
This commit is contained in:
parent
1cc9af8711
commit
6d2a566329
@ -185,9 +185,9 @@ static int wusbhc_rh_get_hub_descr(struct wusbhc *wusbhc, u16 wValue,
|
|||||||
descr->bDescriptorType = 0x29; /* HUB type */
|
descr->bDescriptorType = 0x29; /* HUB type */
|
||||||
descr->bNbrPorts = wusbhc->ports_max;
|
descr->bNbrPorts = wusbhc->ports_max;
|
||||||
descr->wHubCharacteristics = cpu_to_le16(
|
descr->wHubCharacteristics = cpu_to_le16(
|
||||||
0x00 /* All ports power at once */
|
HUB_CHAR_COMMON_LPSM /* All ports power at once */
|
||||||
| 0x00 /* not part of compound device */
|
| 0x00 /* not part of compound device */
|
||||||
| 0x10 /* No overcurrent protection */
|
| HUB_CHAR_NO_OCPM /* No overcurrent protection */
|
||||||
| 0x00 /* 8 FS think time FIXME ?? */
|
| 0x00 /* 8 FS think time FIXME ?? */
|
||||||
| 0x00); /* No port indicators */
|
| 0x00); /* No port indicators */
|
||||||
descr->bPwrOn2PwrGood = 0;
|
descr->bPwrOn2PwrGood = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user