mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-20 07:18:33 +03:00
dfu_des.c: Cosmetic changes, use named initializers
This commit is contained in:
@@ -106,17 +106,13 @@ void set_usb_serial_str(const uint8_t *serial_usbstr)
|
|||||||
const USBDDriverDescriptors dfu_descriptors = {
|
const USBDDriverDescriptors dfu_descriptors = {
|
||||||
.pFsDevice = &fsDevice,
|
.pFsDevice = &fsDevice,
|
||||||
.pFsConfiguration = &dfu_cfg_descriptor.ucfg,
|
.pFsConfiguration = &dfu_cfg_descriptor.ucfg,
|
||||||
//#if defined (CHIP_USB_UDPHS) || defined(CHIP_USB_OTGHS)
|
/* DFU only supports FS for now */
|
||||||
#if 0 // DFU only supports FS for now
|
.pFsQualifier = NULL,
|
||||||
.pFsQualifier = ,
|
.pFsOtherSpeed = NULL,
|
||||||
.pFsOtherSpeed = ,
|
.pHsDevice = NULL,
|
||||||
.pHsDevice = ,
|
.pHsConfiguration = NULL,
|
||||||
.pHsConfiguration = ,
|
.pHsQualifier = NULL,
|
||||||
.pHsQualifier = ,
|
.pHsOtherSpeed = NULL,
|
||||||
.pHsOtherSpeed = ,
|
|
||||||
#else
|
|
||||||
0, 0, 0, 0, 0, 0,
|
|
||||||
#endif
|
|
||||||
#if 0
|
#if 0
|
||||||
.pStrings = usb_strings,
|
.pStrings = usb_strings,
|
||||||
.numStrings = ARRAY_SIZE(usb_strings),
|
.numStrings = ARRAY_SIZE(usb_strings),
|
||||||
|
|||||||
Reference in New Issue
Block a user