diff options
author | Bill Richardson <wfrichar@chromium.org> | 2016-09-30 10:53:45 -0700 |
---|---|---|
committer | Bill Richardson <wfrichar@chromium.org> | 2016-10-01 03:14:28 +0000 |
commit | 6356e17eefd345c6b407e814a151c66254ce41a6 (patch) | |
tree | 0ef47619d379f965f7982b1fcef974e7f60c0289 | |
parent | fa7f71cd84ca1732f698f02b79b3fb5cc758dee0 (diff) | |
download | chrome-ec-6356e17eefd345c6b407e814a151c66254ce41a6.tar.gz |
g: The hid command is only useful for debugging
And even that's a bit of a stretch. This entire endpoint will
probably be deactivated until it's more useful. In the meantime,
we can just leave the one little debug command for debug builds.
BUG=chrome-os-partner:57408
BRANCH=none
TEST=make buildall; try on Gru with and without CR50_DEV=1
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Change-Id: Id4c185fe66d52fa49fcbee6a549df41d297c41af
Reviewed-on: https://chromium-review.googlesource.com/391045
Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r-- | chip/g/usb_hid.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chip/g/usb_hid.c b/chip/g/usb_hid.c index 11c82eacbf..a0ea412a61 100644 --- a/chip/g/usb_hid.c +++ b/chip/g/usb_hid.c @@ -135,6 +135,8 @@ static int hid_iface_request(struct usb_setup_packet *req) } USB_DECLARE_IFACE(USB_IFACE_HID, hid_iface_request); +#ifdef CR50_DEV +/* Just for debugging */ static int command_hid(int argc, char **argv) { uint8_t keycode = 0x0a; /* 'G' key */ @@ -156,3 +158,4 @@ static int command_hid(int argc, char **argv) DECLARE_CONSOLE_COMMAND(hid, command_hid, "[<HID keycode>]", "test USB HID driver"); +#endif |