power: add API for cancelling transition 94/287794/1
authorYoungjae Cho <y0.cho@samsung.com>
Mon, 6 Feb 2023 08:21:06 +0000 (17:21 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 6 Feb 2023 08:21:06 +0000 (17:21 +0900)
commitbc173211a1c057daa993ee26b105d9203843ed4c
tree555b082ba33c38146c1d1c27d3f69d11c870b7a5
parent46a81d7c8dc1eade47b416026857ece336a1353a
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