diff options
Diffstat (limited to 'chip/mchp/gpio_cmds.c')
-rw-r--r-- | chip/mchp/gpio_cmds.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/chip/mchp/gpio_cmds.c b/chip/mchp/gpio_cmds.c index 7263909c9c..927d6d0326 100644 --- a/chip/mchp/gpio_cmds.c +++ b/chip/mchp/gpio_cmds.c @@ -1,4 +1,4 @@ -/* Copyright 2017 The Chromium OS Authors. All rights reserved. +/* Copyright 2017 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -17,11 +17,9 @@ /* Console output macros */ #define CPUTS(outstr) cputs(CC_LPC, outstr) -#define CPRINTS(format, args...) cprints(CC_LPC, format, ## args) +#define CPRINTS(format, args...) cprints(CC_LPC, format, ##args) - - -static int cmd_gp_get_config(int argc, char **argv) +static int cmd_gp_get_config(int argc, const char **argv) { char *e; int i; @@ -43,7 +41,7 @@ static int cmd_gp_get_config(int argc, char **argv) } else { /* Otherwise print them all */ for (i = 0; i < GPIO_COUNT; i++) { if (!gpio_is_implemented(i)) - continue; /* Skip unsupported signals */ + continue; /* Skip unsupported signals */ gctrl = MCHP_GPIO_CTRL(i); @@ -56,11 +54,10 @@ static int cmd_gp_get_config(int argc, char **argv) return EC_SUCCESS; } -DECLARE_CONSOLE_COMMAND(gpgetcfg, cmd_gp_get_config, - "[number]", +DECLARE_CONSOLE_COMMAND(gpgetcfg, cmd_gp_get_config, "[number]", "Read GPIO config"); -static int cmd_gp_set_config(int argc, char **argv) +static int cmd_gp_set_config(int argc, const char **argv) { char *e; int i; @@ -91,6 +88,5 @@ static int cmd_gp_set_config(int argc, char **argv) return EC_SUCCESS; } -DECLARE_CONSOLE_COMMAND(gpsetcfg, cmd_gp_set_config, - "gp_num val", +DECLARE_CONSOLE_COMMAND(gpsetcfg, cmd_gp_set_config, "gp_num val", "Set GPIO config"); |