summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb2/quirk/usb2_quirk.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb2/quirk/usb2_quirk.c')
-rw-r--r--sys/dev/usb2/quirk/usb2_quirk.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/sys/dev/usb2/quirk/usb2_quirk.c b/sys/dev/usb2/quirk/usb2_quirk.c
index 215def3..7a6a39d 100644
--- a/sys/dev/usb2/quirk/usb2_quirk.c
+++ b/sys/dev/usb2/quirk/usb2_quirk.c
@@ -113,30 +113,30 @@ static struct usb2_quirk_entry usb2_quirks[USB_DEV_QUIRKS_MAX] = {
};
static const char *usb_quirk_str[USB_QUIRK_MAX] = {
- "UQ_NONE",
- "UQ_AUDIO_SWAP_LR", /* left and right sound channels are swapped */
- "UQ_AU_INP_ASYNC", /* input is async despite claim of adaptive */
- "UQ_AU_NO_FRAC", /* don't adjust for fractional samples */
- "UQ_AU_NO_XU", /* audio device has broken extension unit */
- "UQ_BAD_ADC", /* bad audio spec version number */
- "UQ_BAD_AUDIO", /* device claims audio class, but isn't */
- "UQ_BROKEN_BIDIR", /* printer has broken bidir mode */
- "UQ_BUS_POWERED", /* device is bus powered, despite claim */
- "UQ_HID_IGNORE", /* device should be ignored by hid class */
- "UQ_KBD_IGNORE", /* device should be ignored by kbd class */
- "UQ_MS_BAD_CLASS", /* doesn't identify properly */
- "UQ_MS_LEADING_BYTE", /* mouse sends an unknown leading byte */
- "UQ_MS_REVZ", /* mouse has Z-axis reversed */
- "UQ_NO_STRINGS", /* string descriptors are broken */
- "UQ_OPEN_CLEARSTALL", /* device needs clear endpoint stall */
- "UQ_POWER_CLAIM", /* hub lies about power status */
- "UQ_SPUR_BUT_UP", /* spurious mouse button up events */
- "UQ_SWAP_UNICODE", /* has some Unicode strings swapped */
- "UQ_CFG_INDEX_1", /* select configuration index 1 by default */
- "UQ_CFG_INDEX_2", /* select configuration index 2 by default */
- "UQ_CFG_INDEX_3", /* select configuration index 3 by default */
- "UQ_CFG_INDEX_4", /* select configuration index 4 by default */
- "UQ_CFG_INDEX_0", /* select configuration index 0 by default */
+ [UQ_NONE] = "UQ_NONE",
+ [UQ_AUDIO_SWAP_LR] = "UQ_AUDIO_SWAP_LR",
+ [UQ_AU_INP_ASYNC] = "UQ_AU_INP_ASYNC",
+ [UQ_AU_NO_FRAC] = "UQ_AU_NO_FRAC",
+ [UQ_AU_NO_XU] = "UQ_AU_NO_XU",
+ [UQ_BAD_ADC] = "UQ_BAD_ADC",
+ [UQ_BAD_AUDIO] = "UQ_BAD_AUDIO",
+ [UQ_BROKEN_BIDIR] = "UQ_BROKEN_BIDIR",
+ [UQ_BUS_POWERED] = "UQ_BUS_POWERED",
+ [UQ_HID_IGNORE] = "UQ_HID_IGNORE",
+ [UQ_KBD_IGNORE] = "UQ_KBD_IGNORE",
+ [UQ_MS_BAD_CLASS] = "UQ_MS_BAD_CLASS",
+ [UQ_MS_LEADING_BYTE] = "UQ_MS_LEADING_BYTE",
+ [UQ_MS_REVZ] = "UQ_MS_REVZ",
+ [UQ_NO_STRINGS] = "UQ_NO_STRINGS",
+ [UQ_OPEN_CLEARSTALL] = "UQ_OPEN_CLEARSTALL",
+ [UQ_POWER_CLAIM] = "UQ_POWER_CLAIM",
+ [UQ_SPUR_BUT_UP] = "UQ_SPUR_BUT_UP",
+ [UQ_SWAP_UNICODE] = "UQ_SWAP_UNICODE",
+ [UQ_CFG_INDEX_1] = "UQ_CFG_INDEX_1",
+ [UQ_CFG_INDEX_2] = "UQ_CFG_INDEX_2",
+ [UQ_CFG_INDEX_3] = "UQ_CFG_INDEX_3",
+ [UQ_CFG_INDEX_4] = "UQ_CFG_INDEX_4",
+ [UQ_CFG_INDEX_0] = "UQ_CFG_INDEX_0",
};
/*------------------------------------------------------------------------*
OpenPOWER on IntegriCloud