usb: Remove magic constants from device bmAttributes

Replace magic constants in device bmAttributes with symbolic ones
from Linux kernel ch9.h

Signed-off-by: Pantelis Koukousoulas <pktoss@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Pantelis Koukousoulas 2013-12-16 09:42:49 +02:00 committed by Gerd Hoffmann
parent 46eef33b89
commit bd93976a1a
12 changed files with 25 additions and 18 deletions

View file

@ -119,7 +119,8 @@ static const USBDescDevice desc_device_hub = {
{
.bNumInterfaces = 1,
.bConfigurationValue = 1,
.bmAttributes = 0xe0,
.bmAttributes = USB_CFG_ATT_ONE | USB_CFG_ATT_SELFPOWER |
USB_CFG_ATT_WAKEUP,
.nif = 1,
.ifs = &desc_iface_hub,
},