power: add device_power_change_state_wait_done() 35/269135/1
authorYoungjae Cho <y0.cho@samsung.com>
Mon, 10 Jan 2022 07:14:19 +0000 (16:14 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 10 Jan 2022 08:21:23 +0000 (17:21 +0900)
commitce0ba6532a4f12a62291fc68989d483976d7154c
treeb692bcd94a0794dbf5853dfd91dfb43671129772
parent6c7db7c9de273d907cbe47737b27c26d943e9733
power: add device_power_change_state_wait_done()

The api device_power_add_change_state_wait_callback() now shall reply
to the deviced that it is ready to sleep. The struct device_event_info
now contains an additional information, uint64_t id, which is used by
device_power_change_state_wait_done(). The callback should store the id
and call device_power_change_state_wait_done() with the id.

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