summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2018-02-01 11:38:29 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-02-05 19:08:21 -0800
commit1af3e5362689497cbc5896cad8e907dd85c7e8ce (patch)
tree9daac181b8d5c8b00bdf2c494c24878a67492401 /chip
parent59fe7c7a5861f95da3d3539a55e3ad019a615517 (diff)
downloadchrome-ec-1af3e5362689497cbc5896cad8e907dd85c7e8ce.tar.gz
keyboard_scan: Disable when USB is suspended without wake
Keyboard matrix scanning can be disabled when the USB interface is disabled without setting the remote wake feature (USB_REQ_FEATURE_DEVICE_REMOTE_WAKEUP), as events would be ignored anyway. BRANCH=none BUG=b:72683995 TEST=keyboard matrix scanning is disabled when lid is closed. Change-Id: I0b2346cc3426b9ef51127424f9953fd5c20ecd49 Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/897068 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r--chip/stm32/usb_hid_keyboard.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/chip/stm32/usb_hid_keyboard.c b/chip/stm32/usb_hid_keyboard.c
index e882b88d7b..631ad15ef2 100644
--- a/chip/stm32/usb_hid_keyboard.c
+++ b/chip/stm32/usb_hid_keyboard.c
@@ -571,6 +571,9 @@ void keyboard_state_changed(int row, int col, int is_pressed)
keyboard_process_queue();
}
+void clear_typematic_key(void)
+{ }
+
#ifdef CONFIG_USB_HID_KEYBOARD_BACKLIGHT
void usb_hid_keyboard_init(void)
{