From: Yunhee Seo Date: Wed, 24 Apr 2024 07:32:36 +0000 (+0900) Subject: external_connection: Change data struct variable name X-Git-Tag: accepted/tizen/unified/20240614.085013~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7390f27701b020f43e6bdef33308141f3e382026;p=platform%2Fhal%2Fbackend%2Femulator%2Fdevice-emulator.git external_connection: Change data struct variable name 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 --- diff --git a/hw/external_connection/external_connection.c b/hw/external_connection/external_connection.c index 859bec5..e8eb69c 100644 --- a/hw/external_connection/external_connection.c +++ b/hw/external_connection/external_connection.c @@ -97,7 +97,7 @@ static void signal_delivered(GDBusConnection *conn, 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; @@ -164,7 +164,7 @@ static int external_connection_get_current_state( continue; } - info.name = extcon_devices[i].type; + info.device_type = extcon_devices[i].type; snprintf(buf, sizeof(buf), "%d", val); info.state = buf;