Revert "USB: composite: Add flag to usb_function to hide its interface during enumera...
author黄涛 <huangtao@rock-chips.com>
Sat, 30 Jul 2011 14:48:44 +0000 (22:48 +0800)
committer黄涛 <huangtao@rock-chips.com>
Sat, 30 Jul 2011 14:48:44 +0000 (22:48 +0800)
This reverts commit ee26eaf1392e4f38ed8d23047a6aa230d5a68188.

drivers/usb/gadget/composite.c
include/linux/usb/composite.h

index 0dedc681fc30bf32cf5a00a8219dc9789a72de13..7e2dacc7974d3aa2e2465ca4b3a5884c461a78fc 100755 (executable)
@@ -267,7 +267,7 @@ static int config_buf(struct usb_configuration *config,
                        descriptors = f->hs_descriptors;
                else
                        descriptors = f->descriptors;
-               if (f->hidden || !descriptors || descriptors[0] == NULL) {
+               if (!descriptors || descriptors[0] == NULL) {
                        for (; f != config->interface[interfaceCount];) {
                                interfaceCount++;
                                c->bNumInterfaces--;
index 8f33ae3e00f353c58b0d1b9701b7954781912be1..4f6bb3d2160e9f8d84516aae44363a662418431a 100644 (file)
@@ -100,7 +100,6 @@ struct usb_function {
        struct usb_descriptor_header    **hs_descriptors;
 
        struct usb_configuration        *config;
-       int                             hidden;
 
        /* REVISIT:  bind() functions can be marked __init, which
         * makes trouble for section mismatch analysis.  See if