USB: gadget: f_accessory: Misc improvements and cleanup:
authorMike Lockwood <lockwood@android.com>
Thu, 10 Mar 2011 02:48:20 +0000 (21:48 -0500)
committerMike Lockwood <lockwood@android.com>
Thu, 10 Mar 2011 15:07:27 +0000 (10:07 -0500)
commit5dcd55b2e98ffdaf54a5cdd67a3101e1e5dd3aa1
tree9fa13559bfdf17c1fb75ac025340a2a27646e7a1
parent68c3ec37af0fe174b7715bd08c26da5f92cadd26
USB: gadget: f_accessory: Misc improvements and cleanup:

- Add URI string

- Replace type string with a description string

- Add a control call to retrieve accessory protocol version (currently 1)

- Driver read() and write() calls now fail after USB disconnect until
  driver file is closed and reopened.

- Misc cleanup work

Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers/usb/gadget/f_accessory.c
include/linux/usb/f_accessory.h