diff options
author | Pantelis Koukousoulas <pktoss@gmail.com> | 2013-12-16 09:42:49 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-02-18 15:39:12 +0100 |
commit | bd93976a1ad9cca9636da66dfde98a41e573130c (patch) | |
tree | 3c337768b23ec9c6ae31f6e92bb21d162db3cd18 /hw/usb/dev-uas.c | |
parent | 46eef33b89e936ca793e13c4aeea1414e97e8dbb (diff) | |
download | qemu-bd93976a1ad9cca9636da66dfde98a41e573130c.zip qemu-bd93976a1ad9cca9636da66dfde98a41e573130c.tar.gz qemu-bd93976a1ad9cca9636da66dfde98a41e573130c.tar.bz2 |
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>
Diffstat (limited to 'hw/usb/dev-uas.c')
-rw-r--r-- | hw/usb/dev-uas.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/usb/dev-uas.c b/hw/usb/dev-uas.c index 997b715..9832385 100644 --- a/hw/usb/dev-uas.c +++ b/hw/usb/dev-uas.c @@ -286,7 +286,7 @@ static const USBDescDevice desc_device_high = { .bNumInterfaces = 1, .bConfigurationValue = 1, .iConfiguration = STR_CONFIG_HIGH, - .bmAttributes = 0xc0, + .bmAttributes = USB_CFG_ATT_ONE | USB_CFG_ATT_SELFPOWER, .nif = 1, .ifs = &desc_iface_high, }, @@ -302,7 +302,7 @@ static const USBDescDevice desc_device_super = { .bNumInterfaces = 1, .bConfigurationValue = 1, .iConfiguration = STR_CONFIG_SUPER, - .bmAttributes = 0xc0, + .bmAttributes = USB_CFG_ATT_ONE | USB_CFG_ATT_SELFPOWER, .nif = 1, .ifs = &desc_iface_super, }, |