summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@google.com>2017-04-05 09:25:52 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-04-06 22:27:01 -0700
commite3f5e6bf6ad2d1e2c283a75cf08e17155633e0a5 (patch)
tree298b008619be3fd4dc7989e0c39ba2c2cbccbd0f /common
parenta8e6b070cbd107d8c2f44f44ae8231a4f4efea90 (diff)
downloadchrome-ec-e3f5e6bf6ad2d1e2c283a75cf08e17155633e0a5.tar.gz
system: Fixups in emulated sysrq code
Follow-up to CL:456520, addressing a few more comments. BRANCH=none BUG=b:35775099 TEST=sysrq available in EC console TEST=sysrq h => help message in AP console TEST=sysrq b => AP reboots Change-Id: I692afa7c911882f00d92b8e6d83889c52821e171 Reviewed-on: https://chromium-review.googlesource.com/468506 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/keyboard_mkbp.c2
-rw-r--r--common/system.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/keyboard_mkbp.c b/common/keyboard_mkbp.c
index e592addf2f..204268e76f 100644
--- a/common/keyboard_mkbp.c
+++ b/common/keyboard_mkbp.c
@@ -260,7 +260,7 @@ void keyboard_update_button(enum keyboard_button_type button, int is_pressed)
}
#ifdef CONFIG_EMULATED_SYSRQ
-void send_sysrq(uint8_t key)
+void host_send_sysrq(uint8_t key)
{
uint32_t value = key;
diff --git a/common/system.c b/common/system.c
index 2ddcd570c2..25ba9dea2c 100644
--- a/common/system.c
+++ b/common/system.c
@@ -1126,7 +1126,7 @@ static int command_sysrq(int argc, char **argv)
if (argc > 1 && argv[1])
key = argv[1][0];
- send_sysrq(key);
+ host_send_sysrq(key);
return EC_SUCCESS;
}