tdm_display: return the module information at use_hal_tdm case. 00/259400/1
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 7 Jun 2021 07:59:32 +0000 (16:59 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 7 Jun 2021 07:59:32 +0000 (16:59 +0900)
The two api can return the values at use_hal_tdm case.
 - tdm_display_get_backend_info
 - tdm_module_get_info

Change-Id: Ie71280a15cbcf7019054bc3ae60ba3eb41dba52b

src/tdm_display.c

index a7a44f7..46cd486 100644 (file)
@@ -969,18 +969,17 @@ tdm_display_get_backend_info(tdm_display *dpy, const char **name,
                break;
        }
 
-       if (!private_module->use_hal_tdm) {
-               assert(module_data != NULL);
-
-               if (name)
-                       *name = module_data->name;
-               if (vendor)
-                       *vendor = module_data->vendor;
-               if (major)
-                       *major = TDM_BACKEND_GET_ABI_MAJOR(module_data->abi_version);
-               if (minor)
-                       *minor = TDM_BACKEND_GET_ABI_MINOR(module_data->abi_version);
-       }
+       assert(module_data != NULL);
+
+       if (name)
+               *name = module_data->name;
+       if (vendor)
+               *vendor = module_data->vendor;
+       if (major)
+               *major = TDM_BACKEND_GET_ABI_MAJOR(module_data->abi_version);
+       if (minor)
+               *minor = TDM_BACKEND_GET_ABI_MINOR(module_data->abi_version);
+
        _pthread_mutex_unlock(&private_display->lock);
 
        return ret;
@@ -1014,16 +1013,14 @@ tdm_module_get_info(tdm_module *module, const char **name,
 
        module_data = private_module->module_data;
 
-       if (!private_module->use_hal_tdm) {
-               if (name)
-                       *name = module_data->name;
-               if (vendor)
-                       *vendor = module_data->vendor;
-               if (major)
-                       *major = TDM_BACKEND_GET_ABI_MAJOR(module_data->abi_version);
-               if (minor)
-                       *minor = TDM_BACKEND_GET_ABI_MINOR(module_data->abi_version);
-       }
+       if (name)
+               *name = module_data->name;
+       if (vendor)
+               *vendor = module_data->vendor;
+       if (major)
+               *major = TDM_BACKEND_GET_ABI_MAJOR(module_data->abi_version);
+       if (minor)
+               *minor = TDM_BACKEND_GET_ABI_MINOR(module_data->abi_version);
 
        _pthread_mutex_unlock(&private_display->lock);