tools: resource-monitor: Add missing BATTERY_ATTR_ONLINE attribute 29/279429/4
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 9 Aug 2022 06:00:23 +0000 (15:00 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 11 Aug 2022 08:54:40 +0000 (17:54 +0900)
Change-Id: I37cea2d7cfd3b5f3b4478d152c1fa84682da021e
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
tools/resource-monitor/resource-monitor.c

index 558b5e2..f89a60d 100644 (file)
@@ -99,6 +99,7 @@ static struct resource_attr_data battery_attrs[] = {
        { .id = BATTERY_ATTR_VOLTAGE_NOW,               .type = DATA_TYPE_INT,          .name = "BATTERY_ATTR_VOLTAGE_NOW",                     .unit = "uV",           .desc = "Battery voltage figure", },
        { .id = BATTERY_ATTR_CURRENT_NOW,               .type = DATA_TYPE_INT,          .name = "BATTERY_ATTR_CURRENT_NOW",                     .unit = "uA",           .desc = "Battery current figure", },
        { .id = BATTERY_ATTR_PRESENT,                   .type = DATA_TYPE_INT,          .name = "BATTERY_ATTR_PRESENT",                         .unit = "",             .desc = "Battery connected status", },
+       { .id = BATTERY_ATTR_ONLINE,                    .type = DATA_TYPE_INT,          .name = "BATTERY_ATTR_ONLINE",                          .unit = "",             .desc = "Battery charger connector status", },
 };
 
 static struct resource_attr_data display_attrs[] = {