usb: gadget: Add device attribute to determine gadget state
authorBadhri Jagan Sridharan <Badhri@google.com>
Sun, 9 Aug 2015 22:12:50 +0000 (15:12 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:52:14 +0000 (13:52 -0800)
commitde9e90c21eb1f9b93dbfb2cd67be38c20fb6c102
tree2c44afe9afde1dc3069a5448568c33ea651dbb5f
parentb9efd37bc8c01458a81d5b142e4b2259465a3c51
usb: gadget: Add device attribute to determine gadget state

Android frameworks (UsbDeviceManager) relies on gadget state exported
through device attributes.  This CL adds the device attribute to export
USB gadget state.

Change-Id: Id0391810d75b58c579610fbec6e37ab22f28886d
Signed-off-by: Badhri Jagan Sridharan <Badhri@google.com>
drivers/usb/gadget/configfs.c