battery: Replace macro power source definitions to hal_device_battery_power_source_type_e 99/310099/5 tizen
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 22 Apr 2024 11:21:16 +0000 (20:21 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Tue, 23 Apr 2024 11:40:17 +0000 (20:40 +0900)
commit1638b0ca926e31430f2a7c708d8a763e1552428e
treec4fb24a2d7024316e095e303a7a52d6ea5e2e3f0
parent2e0c6cd6f81ef9c23acb2ac542323024f92f40dd
battery: Replace macro power source definitions to hal_device_battery_power_source_type_e

As Power source type macro are replaced by hal_device_battery_power_source_type_e,
definition usage logic is also changed.
To get hal_device_battery_power_source_type_e string,
hal_device_battery_power_get_power_source_name is used.

Change-Id: Id7833b6e58d6913b41d27c6ad2053854f293ef66
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/battery.c