From baabdedd3381511603c658b02368be57ed2756cd Mon Sep 17 00:00:00 2001 From: Chanwoo Choi Date: Tue, 18 Jun 2024 16:58:22 +0900 Subject: [PATCH] power-internal: Add missing DEVICE_POWER_TRANSITION_REASON_DISPLAY_OFF_TIMEOUT wakeup reason The power wakeup reason should be mapped with enum hal_device_power_transition_reason in hal-api-device. So that add missing DEVICE_POWER_TRANSITION_REASON_DISPLAY_OFF_TIMEOUT wakeup reason in order to map the wakeup reason between capi-system-device and hal-api-device. Change-Id: I9ae3b39e38c282cd4b888b099b185a0737fc8166 Signed-off-by: Chanwoo Choi --- include/power-internal.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/power-internal.h b/include/power-internal.h index b769ed5..522ca5f 100644 --- a/include/power-internal.h +++ b/include/power-internal.h @@ -57,6 +57,7 @@ typedef enum { DEVICE_POWER_TRANSITION_REASON_BATTERY_CRITICAL_LEVEL, /**< Battery capacity reaches critical level */ DEVICE_POWER_TRANSITION_REASON_BATTERY_POWEROFF_LEVEL, /**< Battery capacity reaches poweroff level */ DEVICE_POWER_TRANSITION_REASON_DISPLAY_OFF, /**< Display off */ + DEVICE_POWER_TRANSITION_REASON_DISPLAY_OFF_TIMEOUT, /**< Display off after timeout */ DEVICE_POWER_TRANSITION_REASON_TOUCH_KEY, /**< Touch key pressed */ DEVICE_POWER_TRANSITION_REASON_TOUCH_SCREEN, /**< Touch screen pressed */ DEVICE_POWER_TRANSITION_REASON_USB, /**< USB attached or detached */ -- 2.7.4