diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2015-01-18 17:31:41 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-25 08:01:12 -0500 |
commit | 4fbdb33678829d39501e1ff950940d9090d4730a (patch) | |
tree | 9422696c6c5937d9e086def60674c1668b637d82 | |
parent | 4925fd9d7df6fa4d2ad8830266c9962395d7b66f (diff) |
imx21-hcd: 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/host/imx21-hcd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/host/imx21-hcd.c b/drivers/usb/host/imx21-hcd.c index eb4efba9f1ad..6a2ad550b120 100644 --- a/drivers/usb/host/imx21-hcd.c +++ b/drivers/usb/host/imx21-hcd.c | |||
@@ -1482,9 +1482,8 @@ static int get_hub_descriptor(struct usb_hcd *hcd, | |||
1482 | desc->bDescLength = 9; | 1482 | desc->bDescLength = 9; |
1483 | desc->bPwrOn2PwrGood = 0; | 1483 | desc->bPwrOn2PwrGood = 0; |
1484 | desc->wHubCharacteristics = (__force __u16) cpu_to_le16( | 1484 | desc->wHubCharacteristics = (__force __u16) cpu_to_le16( |
1485 | 0x0002 | /* No power switching */ | 1485 | HUB_CHAR_NO_LPSM | /* No power switching */ |
1486 | 0x0010 | /* No over current protection */ | 1486 | HUB_CHAR_NO_OCPM); /* No over current protection */ |
1487 | 0); | ||
1488 | 1487 | ||
1489 | desc->u.hs.DeviceRemovable[0] = 1 << 1; | 1488 | desc->u.hs.DeviceRemovable[0] = 1 << 1; |
1490 | desc->u.hs.DeviceRemovable[1] = ~0; | 1489 | desc->u.hs.DeviceRemovable[1] = ~0; |