usb: Remove duplicated CDC_ECM_SUBCLASS definition
Use ECM_SUBCLASS instead. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
87d6c50e47
commit
4291fb67a3
2 changed files with 3 additions and 4 deletions
|
@ -104,7 +104,6 @@
|
||||||
|
|
||||||
/* Sub-classes */
|
/* Sub-classes */
|
||||||
#define ACM_SUBCLASS 0x02
|
#define ACM_SUBCLASS 0x02
|
||||||
#define CDC_ECM_SUBCLASS 0x06
|
|
||||||
#define CDC_NCM_SUBCLASS 0x0d
|
#define CDC_NCM_SUBCLASS 0x0d
|
||||||
#define BOOT_INTERFACE_SUBCLASS 0x01
|
#define BOOT_INTERFACE_SUBCLASS 0x01
|
||||||
#define SCSI_TRANSPARENT_SUBCLASS 0x06
|
#define SCSI_TRANSPARENT_SUBCLASS 0x06
|
||||||
|
|
|
@ -411,7 +411,7 @@ static struct dev_common_descriptor common_desc = {
|
||||||
.bFirstInterface = FIRST_IFACE_CDC_ECM,
|
.bFirstInterface = FIRST_IFACE_CDC_ECM,
|
||||||
.bInterfaceCount = 0x02,
|
.bInterfaceCount = 0x02,
|
||||||
.bFunctionClass = COMMUNICATION_DEVICE_CLASS,
|
.bFunctionClass = COMMUNICATION_DEVICE_CLASS,
|
||||||
.bFunctionSubClass = CDC_ECM_SUBCLASS,
|
.bFunctionSubClass = ECM_SUBCLASS,
|
||||||
.bFunctionProtocol = 0,
|
.bFunctionProtocol = 0,
|
||||||
.iFunction = 0,
|
.iFunction = 0,
|
||||||
},
|
},
|
||||||
|
@ -426,7 +426,7 @@ static struct dev_common_descriptor common_desc = {
|
||||||
.bAlternateSetting = 0,
|
.bAlternateSetting = 0,
|
||||||
.bNumEndpoints = 1,
|
.bNumEndpoints = 1,
|
||||||
.bInterfaceClass = COMMUNICATION_DEVICE_CLASS,
|
.bInterfaceClass = COMMUNICATION_DEVICE_CLASS,
|
||||||
.bInterfaceSubClass = CDC_ECM_SUBCLASS,
|
.bInterfaceSubClass = ECM_SUBCLASS,
|
||||||
.bInterfaceProtocol = 0,
|
.bInterfaceProtocol = 0,
|
||||||
.iInterface = 0,
|
.iInterface = 0,
|
||||||
},
|
},
|
||||||
|
@ -491,7 +491,7 @@ static struct dev_common_descriptor common_desc = {
|
||||||
.bAlternateSetting = 1,
|
.bAlternateSetting = 1,
|
||||||
.bNumEndpoints = 2,
|
.bNumEndpoints = 2,
|
||||||
.bInterfaceClass = COMMUNICATION_DEVICE_CLASS_DATA,
|
.bInterfaceClass = COMMUNICATION_DEVICE_CLASS_DATA,
|
||||||
.bInterfaceSubClass = CDC_ECM_SUBCLASS,
|
.bInterfaceSubClass = ECM_SUBCLASS,
|
||||||
.bInterfaceProtocol = 0,
|
.bInterfaceProtocol = 0,
|
||||||
.iInterface = 0,
|
.iInterface = 0,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue