summaryrefslogtreecommitdiff
path: root/common/gpio_commands.c
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2016-08-25 15:10:55 -0700
committerBill Richardson <wfrichar@chromium.org>2016-08-31 17:20:26 +0000
commit8c4421759d127f23d9745c6b495e5d69e171b9a6 (patch)
treefeec0fdee8a19e56ac86c894c3fd69cf85b3bcfe /common/gpio_commands.c
parentada6b3d5d5c058d38b7a73da48d3173c6c453da0 (diff)
downloadchrome-ec-8c4421759d127f23d9745c6b495e5d69e171b9a6.tar.gz
Cr50: Mark several console commands as safe
Even when CONFIG_RESTRICTED_CONSOLE_COMMANDS is enabled, there are many commands that can't do anything dangerous. This marks some of those commands as safe to use, even when restrictions are enforced. I'm only marking commands that are used by the Cr50, since that's the only board that has restrictions. BUG=chrome-os-partner:55322 BRANCH=none TEST=make buildall, test on Cr50 hardware Change-Id: I6289d332830175b6adcb6b20cb4c21d01d27a25e Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/376188 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'common/gpio_commands.c')
-rw-r--r--common/gpio_commands.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/gpio_commands.c b/common/gpio_commands.c
index 57bd1602fc..32bd896c0c 100644
--- a/common/gpio_commands.c
+++ b/common/gpio_commands.c
@@ -132,9 +132,9 @@ static int command_gpio_get(int argc, char **argv)
return EC_SUCCESS;
}
-DECLARE_CONSOLE_COMMAND(gpioget, command_gpio_get,
- "[name]",
- "Read GPIO value(s)");
+DECLARE_SAFE_CONSOLE_COMMAND(gpioget, command_gpio_get,
+ "[name]",
+ "Read GPIO value(s)");
static int command_gpio_set(int argc, char **argv)
{