external_connection: Change data struct variable name 29/310229/1
authorYunhee Seo <yuni.seo@samsung.com>
Wed, 24 Apr 2024 07:32:36 +0000 (16:32 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Wed, 24 Apr 2024 07:32:36 +0000 (16:32 +0900)
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>
hw/external_connection/external_connection.c

index 859bec528861efd012162d94cae9f5e4073c0db1..e8eb69c9606a271083ca0f0168839b820b15f71d 100644 (file)
@@ -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;