From cf37bc26c7e3603ba100f55e6275e0cb4dfed8e0 Mon Sep 17 00:00:00 2001 From: Daisuke Nojiri Date: Thu, 21 Apr 2022 03:01:08 +0000 Subject: Taniks: Remove resume/suspend hooks for RGB keyboard This patch removes resume/suspend hooks for RGB keyboard because it is now controled by the keyboard backlight module. BUG=b:226215987 BRANCH=None TEST=Run 'ectool rgbkbd pwmsetkblight' on Taniks. TEST=Control brightness by Alt+F6/F7 on Taniks. Signed-off-by: Daisuke Nojiri Change-Id: I20a788d86d351ebdcbede85e85e160b22bbb3d76 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3615853 Reviewed-by: Parth Malkan --- board/taniks/board.c | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/board/taniks/board.c b/board/taniks/board.c index 3d6ba7672d..710d8937fa 100644 --- a/board/taniks/board.c +++ b/board/taniks/board.c @@ -67,27 +67,10 @@ void board_init(void) DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT); -/* Called on AP S3 -> S0 transition */ -static void board_chipset_resume(void) +__override void board_kblight_init(void) { - /* Allow keyboard backlight to be enabled */ - if (ec_cfg_has_keyboard_backlight() == 1) { - /* GPIO_EC_KB_BL_EN_L is low active pin */ - gpio_set_level(GPIO_EC_KB_BL_EN_L, 0); - } -} -DECLARE_HOOK(HOOK_CHIPSET_RESUME, board_chipset_resume, HOOK_PRIO_DEFAULT); - -/* Called on AP S0 -> S3 transition */ -static void board_chipset_suspend(void) -{ - /* Turn off the keyboard backlight if it's on. */ - if (ec_cfg_has_keyboard_backlight() == 1) { - /* GPIO_EC_KB_BL_EN_L is low active pin */ - gpio_set_level(GPIO_EC_KB_BL_EN_L, 1); - } + gpio_set_level(GPIO_EC_KB_BL_EN_L, 0); } -DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, board_chipset_suspend, HOOK_PRIO_DEFAULT); #ifdef CONFIG_CHARGE_RAMP_SW -- cgit v1.2.1