power: add API for cancelling transition 53/287853/1
authorYoungjae Cho <y0.cho@samsung.com>
Mon, 6 Feb 2023 08:21:06 +0000 (17:21 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 7 Feb 2023 06:54:01 +0000 (15:54 +0900)
commit50f23af397925499c2df31863a175d3eeb319d38
treecff757cfdd3b2289bf8ba32755002b9246dff4db
parentf2cca4e7b034cbb28f1cbd62fe80aee4b098f7fd
power: add API for cancelling transition

The cancelling API would trigger the opposite transition of the ongoing
transition, for example, if the ongoing transition is from
DEVICE_POWER_STATE_NORMAL to DEVICE_POWER_STATE_SLEEP, then transition
from DEVICE_POWER_STATE_SLEEP to DEVICE_POWER_STATE_NORMAL will follow
after calling cancelling API.

Change-Id: Ife624cd61f28ee7a5ab46b0e5dc0c0089b0aa72a
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
include/power-internal.h
src/power-internal.c