summaryrefslogtreecommitdiff
path: root/common/hooks.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@chromium.org>2018-08-17 11:00:18 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-08-21 19:27:46 -0700
commitaf908bfce225415c01d56b3f57cfc399d8485d3e (patch)
tree73a798d47d9cb2002df7cb4836e6d5c7193ff997 /common/hooks.c
parentb8af74cc4cf7a304ce8087fc60248ea037aad566 (diff)
downloadchrome-ec-af908bfce225415c01d56b3f57cfc399d8485d3e.tar.gz
common: add BASE_CHANGE hook
Add a hook to act when a detachable device is connected/disconnected from a base. BUG=b:73133611 BRANCH=nocturne TEST=Test with evtest that an event is sent to the AP. Change-Id: I21103fff88f19a197124095ee229eebb178dcf3d Signed-off-by: Dmitry Torokhov <dtor@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1180538 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'common/hooks.c')
-rw-r--r--common/hooks.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/hooks.c b/common/hooks.c
index 6b4bb8873d..bee2d5fc63 100644
--- a/common/hooks.c
+++ b/common/hooks.c
@@ -45,6 +45,7 @@ static const struct hook_ptrs hook_list[] = {
{__hooks_ac_change, __hooks_ac_change_end},
{__hooks_lid_change, __hooks_lid_change_end},
{__hooks_tablet_mode_change, __hooks_tablet_mode_change_end},
+ {__hooks_base_attached_change, __hooks_base_attached_change_end},
{__hooks_pwrbtn_change, __hooks_pwrbtn_change_end},
{__hooks_battery_soc_change, __hooks_battery_soc_change_end},
#ifdef CONFIG_CASE_CLOSED_DEBUG_V1