Further re-factor USB string handling code

This commit refactors USB string code, making it, hopefully, less
buggy and more easier to understand. It also removes "magic" bit
manipulation and "magic" numbers;
This commit is contained in:
Andrey Smirnov
2012-11-07 11:30:44 -08:00
parent c5c4db0196
commit 720e85f850
2 changed files with 50 additions and 23 deletions

View File

@@ -220,4 +220,7 @@ struct usb_iface_assoc_descriptor {
#define USB_DT_INTERFACE_ASSOCIATION_SIZE \
sizeof(struct usb_iface_assoc_descriptor)
enum usb_language_id {
USB_LANGID_ENGLISH_US = 0x409,
};
#endif