projects
/
platform
/
hal
/
backend
/
tw3
/
device-tw3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5aab89a
)
Add info.name in battery_current_state
author
lokilee73
<changjoo.lee@samsung.com>
Wed, 13 Jan 2021 11:33:14 +0000
(20:33 +0900)
committer
lokilee73
<changjoo.lee@samsung.com>
Wed, 13 Jan 2021 11:33:18 +0000
(20:33 +0900)
Change-Id: I1024acbf1b506ddfbd51be35ad3f8abe78b87da9
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
hw/battery/battery.c
patch
|
blob
|
history
diff --git
a/hw/battery/battery.c
b/hw/battery/battery.c
index
d5ce2c0
..
625360c
100644
(file)
--- a/
hw/battery/battery.c
+++ b/
hw/battery/battery.c
@@
-206,6
+206,8
@@
static int battery_get_current_state(
if (!updated_cb)
return -EINVAL;
+ info.name = BATTERY_HARDWARE_DEVICE_ID;
+
path = BATTERY_ROOT_PATH"/battery/status";
ret = sys_get_str(path, status, sizeof(status));
if (ret < 0) {