power: redefine deviced-exclusive power state enum 45/285545/4
authorYoungjae Cho <y0.cho@samsung.com>
Wed, 14 Dec 2022 09:20:05 +0000 (18:20 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Wed, 14 Dec 2022 11:39:46 +0000 (20:39 +0900)
commitbab81b4522e739a2f5cc3046b4d50363b806fe79
treec2eb1b50418359c3cc107e70e987d5423b22bb60
parent0adc137f91bfe4b6e170df8607f4d1778ac38e64
power: redefine deviced-exclusive power state enum

Do not use enums from device API for the deviced power module. Instead,
the deviced defines its own enums prefixed with DEVICED_POWER. When the
deviced receives request from device API with API enum, then it is
converted to the deviced enum, and vice versa.

Change-Id: Ic67ba5c1bbbb1fa8335c15fde43cb13e9705eb0c
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/battery/lowbat-handler.c
src/power/power-boot.c
src/power/power-dbus.c
src/power/power-off.c
src/power/power.c
src/power/power.h