When using 'battery' h/w resouce in /hal/etc/pass/pass.conf,
the following error happen. So that add the missing code for PASS_RESROUCE_BATTERY_ID.
[Error log]
pass-parser.c: parse_resource_data(748) > Unknown 'device_type' property value (battery)
Change-Id: I30fb782e4e67b0fbe728201e30e2e4d0a1698c4c
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
config_data->res_type = PASS_RESOURCE_BUS_ID;
else if (!strncmp(device_type, PASS_RESOURCE_MEMORY_NAME, strlen(device_type)))
config_data->res_type = PASS_RESOURCE_MEMORY_ID;
+ else if (!strncmp(device_type, PASS_RESOURCE_BATTERY_NAME, strlen(device_type)))
+ config_data->res_type = PASS_RESOURCE_BATTERY_ID;
else if (!strncmp(device_type, PASS_RESOURCE_NONSTANDARD_NAME, strlen(device_type)))
config_data->res_type = PASS_RESOURCE_NONSTANDARD_ID;
else {