OSDN Git Service

ANDROID: usb: gadget: configfs: Add device attribute to determine gadget state
authorBadhri Jagan Sridharan <Badhri@google.com>
Sun, 9 Aug 2015 22:12:50 +0000 (15:12 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Tue, 14 Aug 2018 12:17:11 +0000 (17:47 +0530)
commitcaade02fd20cce152a493d1f00ec7180e11ba747
treeb01c4748eada40dd51637cf69c9578913c70bde7
parent08cb27d2b3de6e08793c594ad801f150e88dd04b
ANDROID: usb: gadget: configfs: 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>
[AmitP: Folded following android-4.9 commit changes into this patch
        Parts of e45c769fa7af ("ANDROID: usb: gadget: cleanup: fix unused variable and function warnings")
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
drivers/usb/gadget/configfs.c