aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/atmel_softpack_libraries
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-03-01 22:15:28 +0100
committerHarald Welte <laforge@gnumonks.org>2017-03-01 22:15:28 +0100
commitb2ad7f76a1e0722ab73c2e795d231a4a557dbee6 (patch)
tree2f5fc16a7f2b69a8f8397fd501753729596b6b05 /firmware/atmel_softpack_libraries
parent0395bd15b34a516b3f27311b8b508bb81e40fe34 (diff)
dfu_des.c: Cosmetic changes, use named initializers
Diffstat (limited to 'firmware/atmel_softpack_libraries')
-rw-r--r--firmware/atmel_softpack_libraries/usb/device/dfu/dfu_desc.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/firmware/atmel_softpack_libraries/usb/device/dfu/dfu_desc.c b/firmware/atmel_softpack_libraries/usb/device/dfu/dfu_desc.c
index c325606..655ef1c 100644
--- a/firmware/atmel_softpack_libraries/usb/device/dfu/dfu_desc.c
+++ b/firmware/atmel_softpack_libraries/usb/device/dfu/dfu_desc.c
@@ -106,17 +106,13 @@ void set_usb_serial_str(const uint8_t *serial_usbstr)
const USBDDriverDescriptors dfu_descriptors = {
.pFsDevice = &fsDevice,
.pFsConfiguration = &dfu_cfg_descriptor.ucfg,
-//#if defined (CHIP_USB_UDPHS) || defined(CHIP_USB_OTGHS)
-#if 0 // DFU only supports FS for now
- .pFsQualifier = ,
- .pFsOtherSpeed = ,
- .pHsDevice = ,
- .pHsConfiguration = ,
- .pHsQualifier = ,
- .pHsOtherSpeed = ,
-#else
- 0, 0, 0, 0, 0, 0,
-#endif
+ /* DFU only supports FS for now */
+ .pFsQualifier = NULL,
+ .pFsOtherSpeed = NULL,
+ .pHsDevice = NULL,
+ .pHsConfiguration = NULL,
+ .pHsQualifier = NULL,
+ .pHsOtherSpeed = NULL,
#if 0
.pStrings = usb_strings,
.numStrings = ARRAY_SIZE(usb_strings),