extcon: Change the variable name in hal_device_external_connection_info_s structure 34/310434/1
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 29 Apr 2024 02:49:38 +0000 (11:49 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Mon, 29 Apr 2024 02:50:56 +0000 (11:50 +0900)
As name variable changed to device_type in hal_device_external_connection_info_s structure,
also deviced usage code is changed.
"name" -> "device_type".

Change-Id: I383bc695e4274ecbbfb3a05d4778ef66d4368ede
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/extcon/extcon.c

index 0a43a53c9dd08c54388723692f038ea5fb140e30..bc4c1b07d893f71dfe8eb664054ed5cb8eb3fa4a 100644 (file)
@@ -388,7 +388,7 @@ static void extcon_changed(hal_device_external_connection_info_s *info, void *da
        if (!info->state)
                return;
 
-       ret = hal_device_external_connection_get_device_name(info->name, &extcon_device_name);
+       ret = hal_device_external_connection_get_device_name(info->device_type, &extcon_device_name);
        if (ret < 0)
                _W("Failed to get external connection device name");
        /* call to update */