summaryrefslogtreecommitdiff
path: root/chip/stm32/usb_hid_keyboard.c
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2017-08-11 11:58:56 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-08-12 05:22:03 -0700
commit1ba0395a18c02dfbdc66f8b0f5fa930353b26705 (patch)
treefcd799132bf17fae8bcb13787a61363fbc372f32 /chip/stm32/usb_hid_keyboard.c
parent021d1229f3be500d84864e45e6cab35bb508c308 (diff)
downloadchrome-ec-1ba0395a18c02dfbdc66f8b0f5fa930353b26705.tar.gz
usb_api.h: Stub usb_wake if CONFIG_USB_REMOTE_WAKEUP is not defined
Removes clutter in callers, so that they do not have to wrap usb_wake calls around ifdefs. BRANCH=none BUG=none TEST=make buildall -j Change-Id: I8641cb7aff702920aaa119e644dc812d5c3e774b Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/612220 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip/stm32/usb_hid_keyboard.c')
-rw-r--r--chip/stm32/usb_hid_keyboard.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/chip/stm32/usb_hid_keyboard.c b/chip/stm32/usb_hid_keyboard.c
index 48cf0c470b..a78d2f7bda 100644
--- a/chip/stm32/usb_hid_keyboard.c
+++ b/chip/stm32/usb_hid_keyboard.c
@@ -211,10 +211,8 @@ static void write_keyboard_report(void)
EP_TX_VALID, 0);
}
-#ifdef CONFIG_USB_REMOTE_WAKEUP
/* Wake up host, if required. */
usb_wake();
-#endif
}
static void hid_keyboard_tx(void)