From 759c9d46a03fe87735b2abda0f77abb27d6573d3 Mon Sep 17 00:00:00 2001 From: Ting Shen Date: Wed, 17 Mar 2021 18:29:23 +0800 Subject: jacuzzi: enable keyboard scanning in S0/tablet Most Jacuzzi devices copied the incorrect lid_angle_peripheral_enable code from Reef. Fix this by sharing Willow's good implementation to all followers. BUG=b:181852624 TEST=1) make buildall 2) manually test on fennel BRANCH=kukui Signed-off-by: Ting Shen Change-Id: Ie2dd79d5d0dcebe564664c357db73c5956d1b14b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2765633 Tested-by: Ting Shen Auto-Submit: Ting Shen Reviewed-by: Eric Yilun Lin Commit-Queue: Eric Yilun Lin --- board/makomo/board.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'board/makomo/board.c') diff --git a/board/makomo/board.c b/board/makomo/board.c index fd9c303796..a5c04c7855 100644 --- a/board/makomo/board.c +++ b/board/makomo/board.c @@ -576,16 +576,3 @@ DECLARE_HOST_COMMAND(EC_CMD_PWM_GET_DUTY, host_command_pwm_get_duty, EC_VER_MASK(0)); #endif - -/* Enable or disable input devices, based on chipset state and tablet mode */ -#ifndef TEST_BUILD -void lid_angle_peripheral_enable(int enable) -{ - /* If the lid is in 360 position, ignore the lid angle, - * which might be faulty. Disable keyboard. - */ - if (tablet_get_mode() || chipset_in_state(CHIPSET_STATE_ANY_OFF)) - enable = 0; - keyboard_scan_enable(enable, KB_SCAN_DISABLE_LID_ANGLE); -} -#endif -- cgit v1.2.1