common/port80.c: Format with clang-format
BRANCH=none
TEST=none
@@ -54,14 +54,15 @@ void port_80_write(int data)
* developers to help debug BIOS progress by tracing port80 messages.
*/
if (print_in_int)
- CPRINTF("%c[%pT Port 80: 0x%02x]",
- scroll ? '\n' : '\r', PRINTF_TIMESTAMP_NOW, data);
+ CPRINTF("%c[%pT Port 80: 0x%02x]", scroll ? '\n' : '\r',
+ PRINTF_TIMESTAMP_NOW, data);
hook_call_deferred(&port80_dump_buffer_data, 4 * SECOND);
/* Save current port80 code if system is resetting */
if (data == PORT_80_EVENT_RESET && writes) {
- port80_code_t prev = history[(writes-1) % ARRAY_SIZE(history)];
+ port80_code_t prev =
+ history[(writes - 1) % ARRAY_SIZE(history)];
/*
* last_boot only reports 8-bit codes.
@@ -154,8 +155,7 @@ static int command_port80(int argc, char **argv)
port80_dump_buffer();
return EC_SUCCESS;
}
-DECLARE_CONSOLE_COMMAND(port80, command_port80,
- "[scroll | intprint | flush]",
+DECLARE_CONSOLE_COMMAND(port80, command_port80, "[scroll | intprint | flush]",
"Print port80 writes or toggle port80 scrolling");
enum ec_status port80_last_boot(struct host_cmd_handler_args *args)
@@ -191,8 +191,8 @@ static enum ec_status port80_command_read(struct host_cmd_handler_args *args)
return EC_RES_INVALID_PARAM;
for (i = 0; i < entries; i++) {
- uint16_t e = history[(i + offset) %
- ARRAY_SIZE(history)];
+ uint16_t e =
+ history[(i + offset) % ARRAY_SIZE(history)];
rsp->data.codes[i] = e;
}
@@ -202,8 +202,7 @@ static enum ec_status port80_command_read(struct host_cmd_handler_args *args)
return EC_RES_INVALID_PARAM;
}
-DECLARE_HOST_COMMAND(EC_CMD_PORT80_READ,
- port80_command_read,
+DECLARE_HOST_COMMAND(EC_CMD_PORT80_READ, port80_command_read,
EC_VER_MASK(0) | EC_VER_MASK(1));
static void port80_log_resume(void)
