power: Add "DEVICE" or "device" prefix to enum and API
authorTaeminYeom <taemin.yeom@samsung.com>
Mon, 12 Dec 2022 08:53:11 +0000 (17:53 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 16 Dec 2022 06:33:36 +0000 (15:33 +0900)
commitd74cfdb521220aad1e043ff80a9cd45019c29f10
tree78d2f685c0bfa00aab1060ddc658579613d85a40
parentd79dd08f1fcc0f7e6d9d40b506d67062ffad48fa
power: Add "DEVICE" or "device" prefix to enum and API

To prevent collision, it is a principle to attach a prefix of project name.
However, previous codes does not meet it.

changed enum:

power_state_e -> device_power_state_e
POWER_STATE_* -> DEVICE_POWER_STATE_*

power_transient_state_e -> device_power_transient_state_e
POWER_STATE_TRANSIENT_* -> DEVICE_POWER_STATE_TRANSIENT_*
POWER_STATE_TRANSIENT_*_EARLY -> DEVICE_POWER_STATE_TRANSIENT_*_EARLY
POWER_STATE_TRANSIENT_*_LATE -> DEVICE_POWER_STATE_TRANSIENT_*_LATE

POWER_STATE_*_INDEX -> DEVICE_POWER_STATE_*_INDEX
POWER_STATE_TRANSIENT_*_INDEX -> DEVICE_POWER_STATE_TRANSIENT_*_INDEX

changed callback:

power_change_state_wait_callback -> device_power_change_state_wait_callback

Change-Id: I386e48101e094427870ee83a5cbc2c035b331ad5
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
include/power-internal.h
src/power-internal.c