]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: interface authorization: Declare authorized attribute
authorStefan Koch <stefan.koch10@gmail.com>
Tue, 25 Aug 2015 19:10:05 +0000 (21:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Sep 2015 19:08:39 +0000 (12:08 -0700)
The attribute authorized shows the authorization state for an interface.

Signed-off-by: Stefan Koch <stefan.koch10@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/usb.h

index 447fe29b55b451148c452b82cb0043d510a26eae..3deccab2ce0ab540033e067d70baa667112de0f7 100644 (file)
@@ -178,6 +178,7 @@ struct usb_interface {
        unsigned needs_altsetting0:1;   /* switch to altsetting 0 is pending */
        unsigned needs_binding:1;       /* needs delayed unbind/rebind */
        unsigned resetting_device:1;    /* true: bandwidth alloc after reset */
+       unsigned authorized:1;          /* used for interface authorization */
 
        struct device dev;              /* interface specific device info */
        struct device *usb_dev;