chip/stm32/usb-stream.c: Format with clang-format
BRANCH=none
TEST=none
@@ -28,9 +28,7 @@ static size_t rx_read(struct usb_stream_config const *config)
if (count > queue_space(config->producer.queue))
return 0;
- return queue_add_memcpy(config->producer.queue,
- (void *) address,
- count,
+ return queue_add_memcpy(config->producer.queue, (void *)address, count,
memcpy_from_usbram);
}
@@ -38,8 +36,7 @@ static size_t tx_write(struct usb_stream_config const *config)
{
uintptr_t address = btable_ep[config->endpoint].tx_addr;
size_t count = queue_remove_memcpy(config->consumer.queue,
- (void *) address,
- config->tx_size,
+ (void *)address, config->tx_size,
memcpy_to_usbram);
btable_ep[config->endpoint].tx_count = count;
@@ -142,21 +139,18 @@ void usb_stream_event(struct usb_stream_config const *config,
}
int usb_usart_interface(struct usb_stream_config const *config,
- struct usart_config const *usart,
- int interface,
+ struct usart_config const *usart, int interface,
usb_uint *rx_buf, usb_uint *tx_buf)
{
struct usb_setup_packet req;
usb_read_setup_packet(rx_buf, &req);
- if (req.bmRequestType != (USB_DIR_OUT |
- USB_TYPE_VENDOR |
- USB_RECIP_INTERFACE))
+ if (req.bmRequestType !=
+ (USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_INTERFACE))
return -1;
- if (req.wIndex != interface ||
- req.wLength != 0)
+ if (req.wIndex != interface || req.wLength != 0)
return -1;
switch (req.bRequest) {
