int usb_gadget_get_string (struct usb_gadget_strings * table, int id, u8 * buf);
Finds the iso latin/1 string matching the ID, and converts it into a string descriptor in utf16-le. Returns length of descriptor (always even) or negative errno
If your driver needs stings in multiple languages, you'll need to to use some alternate solution for languages where the ISO 8859/1 (latin/1) character set can't be used. For example, they can't be used with Chinese (Big5, GB2312, etc), Japanese, Korean, or many other languages. You'd likely ``switch (wIndex) { ... }'' in your ep0 string descriptor logic, using this routine in cases where ``western european'' characters suffice for the strings being returned.
This documentation was generated with kernel version 2.6.0.