diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2022-04-21 03:01:08 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-05-02 16:55:24 +0000 |
commit | cf37bc26c7e3603ba100f55e6275e0cb4dfed8e0 (patch) | |
tree | 39036c020116dc8918d528162bec97523b9d3668 /board | |
parent | 328db87267b484387362b9d5c58aa36d4ebdb27e (diff) | |
download | chrome-ec-cf37bc26c7e3603ba100f55e6275e0cb4dfed8e0.tar.gz |
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 <dnojiri@chromium.org>
Change-Id: I20a788d86d351ebdcbede85e85e160b22bbb3d76
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3615853
Reviewed-by: Parth Malkan <parthmalkan@google.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/taniks/board.c | 21 |
1 files 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 |