From 6b602b4791917f1a68946bfdc945484511029d5b Mon Sep 17 00:00:00 2001 From: Youngjae Cho Date: Tue, 14 Feb 2023 10:10:51 +0900 Subject: power: add enum for transition by DISPLAY_OFF_TIMEOUT - DEVICE_POWER_TRANSITION_REASON_DISPLAY_OFF (existing one) Reason for display off itself. - DDEVICE_POWER_TRANSITION_REASON_DISPLAY_OFF_TIMEOUT (added one) Reason for expiration of timer triggered by display off. Commonly, it is used for system suspend reason. Change-Id: Icf18aa0c0da83cdbf2f63cf1c2fdad375f2f5aab Signed-off-by: Youngjae Cho --- include/backend/hal-device-power-interface.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/backend/hal-device-power-interface.h b/include/backend/hal-device-power-interface.h index fd3dd5f..275869b 100644 --- a/include/backend/hal-device-power-interface.h +++ b/include/backend/hal-device-power-interface.h @@ -31,6 +31,7 @@ enum hal_device_power_transition_reason { HAL_DEVICE_POWER_TRANSITION_REASON_BATTERY_CRITICAL_LEVEL, HAL_DEVICE_POWER_TRANSITION_REASON_BATTERY_POWEROFF_LEVEL, HAL_DEVICE_POWER_TRANSITION_REASON_DISPLAY_OFF, + HAL_DEVICE_POWER_TRANSITION_REASON_DISPLAY_OFF_TIMEOUT, HAL_DEVICE_POWER_TRANSITION_REASON_TOUCH_KEY, HAL_DEVICE_POWER_TRANSITION_REASON_TOUCH_SCREEN, HAL_DEVICE_POWER_TRANSITION_REASON_USB, -- cgit v1.2.3