diff options
author | hselasky <hselasky@FreeBSD.org> | 2013-01-30 15:46:26 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2013-01-30 15:46:26 +0000 |
commit | 34829d74e1222ffb99ba5a0dc56d3a62c7813ca5 (patch) | |
tree | 7deb6aabb1fced511305bb7585dcf39efe030c3e /sys/dev/usb/controller/dwc_otg.c | |
parent | 0fbe1630154e5d48b97c66259002053ea2c04768 (diff) | |
download | FreeBSD-src-34829d74e1222ffb99ba5a0dc56d3a62c7813ca5.zip FreeBSD-src-34829d74e1222ffb99ba5a0dc56d3a62c7813ca5.tar.gz |
Provide one global language string descriptor for
american english instead of giving each module its
own.
Submitted by: Christoph Mallon
Diffstat (limited to 'sys/dev/usb/controller/dwc_otg.c')
-rw-r--r-- | sys/dev/usb/controller/dwc_otg.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/usb/controller/dwc_otg.c b/sys/dev/usb/controller/dwc_otg.c index e161ab7..77dda2b 100644 --- a/sys/dev/usb/controller/dwc_otg.c +++ b/sys/dev/usb/controller/dwc_otg.c @@ -3491,9 +3491,6 @@ static const struct usb_hub_descriptor_min dwc_otg_hubd = { .DeviceRemovable = {0}, /* port is removable */ }; -#define STRING_LANG \ - 0x09, 0x04, /* American English */ - #define STRING_VENDOR \ 'D', 0, 'W', 0, 'C', 0, 'O', 0, 'T', 0, 'G', 0 @@ -3502,7 +3499,6 @@ static const struct usb_hub_descriptor_min dwc_otg_hubd = { 'o', 0, 'o', 0, 't', 0, ' ', 0, 'H', 0, \ 'U', 0, 'B', 0, -USB_MAKE_STRING_DESC(STRING_LANG, dwc_otg_langtab); USB_MAKE_STRING_DESC(STRING_VENDOR, dwc_otg_vendor); USB_MAKE_STRING_DESC(STRING_PRODUCT, dwc_otg_product); @@ -3704,8 +3700,8 @@ tr_handle_get_descriptor: case UDESC_STRING: switch (value & 0xff) { case 0: /* Language table */ - len = sizeof(dwc_otg_langtab); - ptr = (const void *)&dwc_otg_langtab; + len = sizeof(usb_string_lang_en); + ptr = (const void *)&usb_string_lang_en; goto tr_valid; case 1: /* Vendor */ |