power: redefine deviced-exclusive power state enum 79/285579/1
authorYoungjae Cho <y0.cho@samsung.com>
Wed, 14 Dec 2022 09:20:05 +0000 (18:20 +0900)
committeryoungjae cho <y0.cho@samsung.com>
Thu, 15 Dec 2022 02:43:52 +0000 (02:43 +0000)
commit08c9f671880d321e9e12ca8b2984de384cea314e
treec2eb1b50418359c3cc107e70e987d5423b22bb60
parent26743bfec3210fa9807bda3d4b87f4ddc706c094
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>
(cherry picked from commit bab81b4522e739a2f5cc3046b4d50363b806fe79)
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