summaryrefslogtreecommitdiff
path: root/common/uart_buffering.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/uart_buffering.c')
-rw-r--r--common/uart_buffering.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/common/uart_buffering.c b/common/uart_buffering.c
index f1c68e7773..6eb8241355 100644
--- a/common/uart_buffering.c
+++ b/common/uart_buffering.c
@@ -383,7 +383,8 @@ DECLARE_HOOK(HOOK_INIT, uart_rx_dma_init, HOOK_PRIO_DEFAULT);
/*****************************************************************************/
/* Host commands */
-static int host_command_console_snapshot(struct host_cmd_handler_args *args)
+static enum ec_status
+host_command_console_snapshot(struct host_cmd_handler_args *args)
{
return uart_console_read_buffer_init();
}
@@ -391,8 +392,8 @@ DECLARE_HOST_COMMAND(EC_CMD_CONSOLE_SNAPSHOT,
host_command_console_snapshot,
EC_VER_MASK(0));
-
-static int host_command_console_read(struct host_cmd_handler_args *args)
+static enum ec_status
+host_command_console_read(struct host_cmd_handler_args *args)
{
if (args->version == 0) {
/*
@@ -428,7 +429,7 @@ DECLARE_HOST_COMMAND(EC_CMD_CONSOLE_READ,
#endif
);
-int uart_console_read_buffer_init(void)
+enum ec_status uart_console_read_buffer_init(void)
{
/* Assume the whole circular buffer is full */
tx_snapshot_head = tx_buf_head;