common/usb_host_command.c: Format with clang-format
BRANCH=none
TEST=none
@@ -38,26 +38,16 @@ struct producer const hostcmd_producer;
struct usb_stream_config const usbhc_stream;
/* RX (Host->EC) queue */
-static struct queue const usb_to_hostcmd = QUEUE_DIRECT(64,
- uint8_t,
- usbhc_stream.producer,
- hostcmd_consumer);
+static struct queue const usb_to_hostcmd =
+ QUEUE_DIRECT(64, uint8_t, usbhc_stream.producer, hostcmd_consumer);
/* TX (EC->Host) queue */
-static struct queue const hostcmd_to_usb = QUEUE_DIRECT(64,
- uint8_t,
- hostcmd_producer,
- usbhc_stream.consumer);
-
-USB_STREAM_CONFIG_FULL(usbhc_stream,
- USB_IFACE_HOSTCMD,
- USB_CLASS_VENDOR_SPEC,
- USB_SUBCLASS_GOOGLE_HOSTCMD,
- USB_PROTOCOL_GOOGLE_HOSTCMD,
- USB_STR_HOSTCMD_NAME,
- USB_EP_HOSTCMD,
- USB_MAX_PACKET_SIZE,
- USB_MAX_PACKET_SIZE,
- usb_to_hostcmd,
+static struct queue const hostcmd_to_usb =
+ QUEUE_DIRECT(64, uint8_t, hostcmd_producer, usbhc_stream.consumer);
+
+USB_STREAM_CONFIG_FULL(usbhc_stream, USB_IFACE_HOSTCMD, USB_CLASS_VENDOR_SPEC,
+ USB_SUBCLASS_GOOGLE_HOSTCMD, USB_PROTOCOL_GOOGLE_HOSTCMD,
+ USB_STR_HOSTCMD_NAME, USB_EP_HOSTCMD,
+ USB_MAX_PACKET_SIZE, USB_MAX_PACKET_SIZE, usb_to_hostcmd,
hostcmd_to_usb)
static uint8_t in_msg[USBHC_MAX_REQUEST_SIZE];
@@ -252,8 +242,8 @@ struct consumer const hostcmd_consumer = {
}),
};
-static enum ec_status host_command_protocol_info(
- struct host_cmd_handler_args *args)
+static enum ec_status
+host_command_protocol_info(struct host_cmd_handler_args *args)
{
struct ec_response_get_protocol_info *r = args->response;
@@ -267,6 +257,5 @@ static enum ec_status host_command_protocol_info(
return EC_RES_SUCCESS;
}
-DECLARE_HOST_COMMAND(EC_CMD_GET_PROTOCOL_INFO,
- host_command_protocol_info,
+DECLARE_HOST_COMMAND(EC_CMD_GET_PROTOCOL_INFO, host_command_protocol_info,
EC_VER_MASK(0));
