aboutsummaryrefslogtreecommitdiff
path: root/hw/usb/dev-bluetooth.c
diff options
context:
space:
mode:
authorPantelis Koukousoulas <pktoss@gmail.com>2013-12-16 09:42:49 +0200
committerGerd Hoffmann <kraxel@redhat.com>2014-02-18 15:39:12 +0100
commitbd93976a1ad9cca9636da66dfde98a41e573130c (patch)
tree3c337768b23ec9c6ae31f6e92bb21d162db3cd18 /hw/usb/dev-bluetooth.c
parent46eef33b89e936ca793e13c4aeea1414e97e8dbb (diff)
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-bluetooth.c')
-rw-r--r--hw/usb/dev-bluetooth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb/dev-bluetooth.c b/hw/usb/dev-bluetooth.c
index 7f292b1ae6..a9661d2801 100644
--- a/hw/usb/dev-bluetooth.c
+++ b/hw/usb/dev-bluetooth.c
@@ -229,7 +229,7 @@ static const USBDescDevice desc_device_bluetooth = {
{
.bNumInterfaces = 2,
.bConfigurationValue = 1,
- .bmAttributes = 0xc0,
+ .bmAttributes = USB_CFG_ATT_ONE | USB_CFG_ATT_SELFPOWER,
.bMaxPower = 0,
.nif = ARRAY_SIZE(desc_iface_bluetooth),
.ifs = desc_iface_bluetooth,