diff options
author | Yunhee Seo <yuni.seo@samsung.com> | 2024-04-24 16:32:36 +0900 |
---|---|---|
committer | Yunhee Seo <yuni.seo@samsung.com> | 2024-04-24 16:32:36 +0900 |
commit | 7390f27701b020f43e6bdef33308141f3e382026 (patch) | |
tree | 59bacf1654221fa2cd02ea48d5b42208362c7cbd | |
parent | 164a866478e14fcb60fdfe136beafb3ceb9a4195 (diff) | |
download | device-emulator-7390f27701b020f43e6bdef33308141f3e382026.tar.gz device-emulator-7390f27701b020f43e6bdef33308141f3e382026.tar.bz2 device-emulator-7390f27701b020f43e6bdef33308141f3e382026.zip |
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 <yuni.seo@samsung.com>
-rw-r--r-- | hw/external_connection/external_connection.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |