diff options
Diffstat (limited to 'common/base_state.c')
-rw-r--r-- | common/base_state.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/common/base_state.c b/common/base_state.c index 543329fe29..f90a5e7ce5 100644 --- a/common/base_state.c +++ b/common/base_state.c @@ -1,4 +1,4 @@ -/* Copyright 2018 The Chromium OS Authors. All rights reserved. +/* Copyright 2018 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -8,7 +8,7 @@ #include "host_command.h" #include "hooks.h" -#define CPRINTS(format, args...) cprints(CC_MOTION_LID, format, ## args) +#define CPRINTS(format, args...) cprints(CC_MOTION_LID, format, ##args) #ifdef CONFIG_BASE_ATTACHED_SWITCH /* 1: base attached, 0: otherwise */ @@ -33,7 +33,7 @@ void base_set_state(int state) } #endif -static int command_setbasestate(int argc, char **argv) +static int command_setbasestate(int argc, const char **argv) { if (argc != 2) return EC_ERROR_PARAM_COUNT; @@ -47,10 +47,9 @@ static int command_setbasestate(int argc, char **argv) return EC_ERROR_PARAM1; return EC_SUCCESS; - } -DECLARE_CONSOLE_COMMAND(basestate, command_setbasestate, - "[attach | detach | reset]", +DECLARE_CONSOLE_COMMAND( + basestate, command_setbasestate, "[attach | detach | reset]", "Manually force base state to attached, detached or reset."); static enum ec_status hostcmd_setbasestate(struct host_cmd_handler_args *args) |