In hal_device_external_connection_info_s structure,
the name used to distinguish specific device type with string name.
Since there is an enumeration that can distinguish device types,
change the name to an appropriate one.
"name" is changed to "device_type".
Change-Id: I5ec4cfa800c8fb68113669866f236bd53647de53
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
if (!found)
goto out;
- info.name = extcon_devices[i].type;
+ info.device_type = extcon_devices[i].type;
snprintf(st, sizeof(st), "%s", state);
info.state = st;
info.flags = 0;
continue;
}
- info.name = extcon_devices[i].type;
+ info.device_type = extcon_devices[i].type;
snprintf(buf, sizeof(buf), "%d", val);
info.state = buf;