Fix typos in usb.c, llist_irqsafe.h and dfu.h

This commit is contained in:
Harald Welte
2017-11-28 19:16:10 +01:00
parent 119624f46f
commit f231541601
3 changed files with 5 additions and 5 deletions

View File

@@ -78,8 +78,8 @@ extern const USBDDriverDescriptors dfu_descriptors;
/* no DFU bootloader is being used */ /* no DFU bootloader is being used */
#define DFURT_NUM_IF 0 #define DFURT_NUM_IF 0
#define DFURT_IF_DESCRIPTOR_STRUCT(a, b) #define DFURT_IF_DESCRIPTOR_STRUCT
#define DFURT_IF_DESCRIPTOR #define DFURT_IF_DESCRIPTOR(a, b)
#endif /* BOARD_USB_DFU */ #endif /* BOARD_USB_DFU */

View File

@@ -10,7 +10,7 @@ static inline void llist_add_irqsafe(struct llist_head *_new,
local_irq_save(x); local_irq_save(x);
llist_add(_new, head); llist_add(_new, head);
local_irq_retsore(x); local_irq_restore(x);
} }
static inline void llist_add_tail_irqsafe(struct llist_head *_new, static inline void llist_add_tail_irqsafe(struct llist_head *_new,

View File

@@ -268,7 +268,7 @@ static const SIMTraceDriverConfigurationDescriptorPhone
#ifdef CARDEMU_SECOND_UART #ifdef CARDEMU_SECOND_UART
.bNumInterfaces = 2+DFURT_NUM_IF, .bNumInterfaces = 2+DFURT_NUM_IF,
#else #else
.bNumInterefaces = 1+DFURT_NUM_IF, .bNumInterfaces = 1+DFURT_NUM_IF,
#endif #endif
.bConfigurationValue = CFG_NUM_PHONE, .bConfigurationValue = CFG_NUM_PHONE,
.iConfiguration = PHONE_CONF_STR, .iConfiguration = PHONE_CONF_STR,
@@ -506,7 +506,7 @@ static const SIMTraceDriverConfigurationDescriptorMITM
.bAlternateSetting = 0, .bAlternateSetting = 0,
.bNumEndpoints = 3, .bNumEndpoints = 3,
.bInterfaceClass = 0xff, .bInterfaceClass = 0xff,
.bInterfaceSubClass = SIMTRAC_SUBCLASS_CARDEM, .bInterfaceSubClass = SIMTRACE_SUBCLASS_CARDEM,
.bInterfaceProtocol = 0, .bInterfaceProtocol = 0,
.iInterface = PHONE_CONF_STR, .iInterface = PHONE_CONF_STR,
}, },