Add info.name in battery_current_state
authorlokilee73 <changjoo.lee@samsung.com>
Wed, 13 Jan 2021 11:33:14 +0000 (20:33 +0900)
committerlokilee73 <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

index d5ce2c0..625360c 100644 (file)
@@ -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) {