aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>2015-01-18 18:02:24 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-25 08:02:33 -0500
commit6d2a5663297a0489e7ade3303bba37e544da66e5 (patch)
tree3784e9515c24377ea3b351215adc0729f6a64cf6
parent1cc9af8711613668d23b60f0c3d648a1e3c4ddc8 (diff)
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>
-rw-r--r--drivers/usb/wusbcore/rh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/wusbcore/rh.c b/drivers/usb/wusbcore/rh.c
index fe8bc777ab88..aa5af817f31c 100644
--- a/drivers/usb/wusbcore/rh.c
+++ b/drivers/usb/wusbcore/rh.c
@@ -185,9 +185,9 @@ static int wusbhc_rh_get_hub_descr(struct wusbhc *wusbhc, u16 wValue,
185 descr->bDescriptorType = 0x29; /* HUB type */ 185 descr->bDescriptorType = 0x29; /* HUB type */
186 descr->bNbrPorts = wusbhc->ports_max; 186 descr->bNbrPorts = wusbhc->ports_max;
187 descr->wHubCharacteristics = cpu_to_le16( 187 descr->wHubCharacteristics = cpu_to_le16(
188 0x00 /* All ports power at once */ 188 HUB_CHAR_COMMON_LPSM /* All ports power at once */
189 | 0x00 /* not part of compound device */ 189 | 0x00 /* not part of compound device */
190 | 0x10 /* No overcurrent protection */ 190 | HUB_CHAR_NO_OCPM /* No overcurrent protection */
191 | 0x00 /* 8 FS think time FIXME ?? */ 191 | 0x00 /* 8 FS think time FIXME ?? */
192 | 0x00); /* No port indicators */ 192 | 0x00); /* No port indicators */
193 descr->bPwrOn2PwrGood = 0; 193 descr->bPwrOn2PwrGood = 0;